File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
development/python-modules/django-app-helper Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ django ,
6+ pythonOlder ,
7+ setuptools ,
8+ docopt ,
9+ dj-database-url ,
10+ python ,
11+ django-filer ,
12+ six ,
13+ django-app-helper ,
14+ } :
15+
16+ buildPythonPackage rec {
17+ pname = "django-app-helper" ;
18+ version = "3.3.4" ;
19+ pyproject = true ;
20+
21+ disabled = pythonOlder "3.8" ;
22+
23+ src = fetchFromGitHub {
24+ owner = "nephila" ;
25+ repo = "django-app-helper" ;
26+ rev = "refs/tags/${ version } " ;
27+ hash = "sha256-4nFg8B1uxGJVY1jcGr0e2Oi14lqXcFOi0HJ+ogE2ikg=" ;
28+ } ;
29+
30+ build-system = [ setuptools ] ;
31+
32+ dependencies = [
33+ dj-database-url
34+ docopt
35+ six
36+ ] ;
37+
38+ checkInputs = [ django-filer ] ;
39+
40+ # Tests depend on django-filer, which depends on this package.
41+ # To avoid infinite recursion, we only enable tests when building passthru.tests.
42+ doCheck = false ;
43+
44+ checkPhase = ''
45+ ${ python . interpreter } helper.py
46+ '' ;
47+
48+ pythonImportsCheck = [ "app_helper" ] ;
49+
50+ passthru . tests = {
51+ runTests = django-app-helper . overrideAttrs ( _ : {
52+ doCheck = true ;
53+ } ) ;
54+ } ;
55+
56+ meta = {
57+ description = "Helper for Django applications development" ;
58+ homepage = "https://django-app-helper.readthedocs.io" ;
59+ changelog = "https://github.com/nephila/django-app-helper/releases/tag/${ version } " ;
60+ license = lib . licenses . gpl2Only ;
61+ maintainers = [ lib . maintainers . onny ] ;
62+ } ;
63+ }
Original file line number Diff line number Diff line change @@ -3333,6 +3333,8 @@ self: super: with self; {
33333333
33343334 django-appconf = callPackage ../development/python-modules/django-appconf { };
33353335
3336+ django-app-helper = callPackage ../development/python-modules/django-app-helper { };
3337+
33363338 django-auditlog = callPackage ../development/python-modules/django-auditlog { };
33373339
33383340 django-auth-ldap = callPackage ../development/python-modules/django-auth-ldap { };
You can’t perform that action at this time.
0 commit comments