Skip to content

Commit ddbf22f

Browse files
committed
python3Packages.django-filer: init at 3.2.3
1 parent 7516bbc commit ddbf22f

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3415,6 +3415,8 @@ self: super: with self; {
34153415

34163416
django-extensions = callPackage ../development/python-modules/django-extensions { };
34173417

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

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

0 commit comments

Comments
 (0)