Skip to content

Commit 98f6ebc

Browse files
python3Packages.django-app-helper: init at 3.3.4 (#352837)
2 parents 846a2b1 + ddbf22f commit 98f6ebc

File tree

3 files changed

+127
-0
lines changed

3 files changed

+127
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
django,
6+
pythonOlder,
7+
pytestCheckHook,
8+
django-polymorphic,
9+
setuptools,
10+
python,
11+
easy-thumbnails,
12+
pillow-heif,
13+
django-app-helper,
14+
distutils,
15+
}:
16+
17+
buildPythonPackage rec {
18+
pname = "django-filer";
19+
version = "3.2.3";
20+
pyproject = true;
21+
22+
disabled = pythonOlder "3.8";
23+
24+
src = fetchFromGitHub {
25+
owner = "django-cms";
26+
repo = "django-filer";
27+
rev = "refs/tags/${version}";
28+
hash = "sha256-PoUBnfNymighCsGoJE+iu31lxA9wqVXimFPCytQtPLg=";
29+
};
30+
31+
build-system = [ setuptools ];
32+
33+
dependencies = [
34+
django
35+
django-polymorphic
36+
easy-thumbnails
37+
];
38+
39+
optional-dependencies = {
40+
heif = [ pillow-heif ];
41+
};
42+
43+
checkInputs = [
44+
distutils
45+
django-app-helper
46+
];
47+
48+
checkPhase = ''
49+
runHook preCheck
50+
${python.interpreter} tests/settings.py
51+
runHook postCheck
52+
'';
53+
54+
meta = {
55+
description = "File management application for Django";
56+
homepage = "https://github.com/django-cms/django-filer";
57+
license = lib.licenses.mit;
58+
maintainers = [ lib.maintainers.onny ];
59+
};
60+
}

pkgs/top-level/python-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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 { };
@@ -3413,6 +3415,8 @@ self: super: with self; {
34133415

34143416
django-extensions = callPackage ../development/python-modules/django-extensions { };
34153417

3418+
django-filer = callPackage ../development/python-modules/django-filer { };
3419+
34163420
django-filter = callPackage ../development/python-modules/django-filter { };
34173421

34183422
django-formtools = callPackage ../development/python-modules/django-formtools { };

0 commit comments

Comments
 (0)