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
17buildPythonPackage rec {
18 pname = "django-filer";
19 version = "3.3.2";
20 pyproject = true;
21
22 disabled = pythonOlder "3.8";
23
24 src = fetchFromGitHub {
25 owner = "django-cms";
26 repo = "django-filer";
27 tag = version;
28 hash = "sha256-XB+imTAcWCj9C6bNAo+uEdrshYKBlhxYXT37l92VW9M=";
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}