File tree Expand file tree Collapse file tree 2 files changed +21
-16
lines changed
pkgs/development/python-modules Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 11{ lib
2- , fetchFromGitHub
3- , fetchpatch
42, buildPythonPackage
53, django
6- , python-fsutil
4+ , fetchFromGitHub
75, python
6+ , python-fsutil
87, pythonOlder
8+ , setuptools
99} :
1010
1111buildPythonPackage rec {
1212 pname = "django-maintenance-mode" ;
1313 version = "0.19.0" ;
14- format = "setuptools" ;
14+ pyproject = true ;
1515
1616 disabled = pythonOlder "3.7" ;
1717
1818 src = fetchFromGitHub {
1919 owner = "fabiocaccamo" ;
20- repo = pname ;
20+ repo = "django-maintenance-mode" ;
2121 rev = "refs/tags/${ version } " ;
2222 hash = "sha256-NAm3xMcHePTYxysihYj48bk7r9ykEtPcxPjSEju/zMM=" ;
2323 } ;
2424
25- patches = [
26- ( fetchpatch {
27- name = "fix-broken-test.patch" ;
28- url = "https://github.com/fabiocaccamo/django-maintenance-mode/commit/68cde8d9ceef00eeaa2068f420698c1c562fa9fc.patch" ;
29- hash = "sha256-K/zYYkcnmWGc7Knz4l9PgvUtT0IccPRXc3UFriC1ldc=" ;
30- } )
25+ nativeBuildInputs = [
26+ setuptools
3127 ] ;
3228
3329 propagatedBuildInputs = [
@@ -43,11 +39,15 @@ buildPythonPackage rec {
4339 runHook postCheck
4440 '' ;
4541
42+ pythonImportsCheck = [
43+ "maintenance_mode"
44+ ] ;
45+
4646 meta = with lib ; {
4747 description = "Shows a 503 error page when maintenance-mode is on" ;
4848 homepage = "https://github.com/fabiocaccamo/django-maintenance-mode" ;
4949 changelog = "https://github.com/fabiocaccamo/django-maintenance-mode/releases/tag/${ version } " ;
50- maintainers = with maintainers ; [ mrmebelman ] ;
5150 license = licenses . bsd3 ;
51+ maintainers = with maintainers ; [ mrmebelman ] ;
5252 } ;
5353}
Original file line number Diff line number Diff line change 44, pytestCheckHook
55, pythonOlder
66, requests
7+ , setuptools
78} :
89
910buildPythonPackage rec {
1011 pname = "python-fsutil" ;
11- version = "0.13.0 " ;
12- format = "setuptools" ;
12+ version = "0.13.1 " ;
13+ pyproject = true ;
1314
1415 disabled = pythonOlder "3.8" ;
1516
1617 src = fetchFromGitHub {
1718 owner = "fabiocaccamo" ;
18- repo = pname ;
19+ repo = "python-fsutil" ;
1920 rev = "refs/tags/${ version } " ;
20- hash = "sha256-RbpbFd+GqFPl88FqKvYEE6HcwFRzPDUTs3vMYM6x7es =" ;
21+ hash = "sha256-yY8hhw6uNKqrcj0geoQeGN/JCDJVja7pCPUHwoViL64 =" ;
2122 } ;
2223
24+ nativeBuildInputs = [
25+ setuptools
26+ ] ;
27+
2328 propagatedBuildInputs = [
2429 requests
2530 ] ;
You can’t perform that action at this time.
0 commit comments