1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{
lib,
buildPythonPackage,
fetchPypi,
pythonRelaxDepsHook,
# build-system
setuptools,
# dependencies
calmjs,
django-appconf,
jinja2,
rcssmin,
rjsmin,
# tests
beautifulsoup4,
brotli,
csscompressor,
django-sekizai,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-compressor";
version = "4.5";
pyproject = true;
src = fetchPypi {
pname = "django_compressor";
inherit version;
hash = "sha256-nZjJBbdBvmywmtgowdIqn/kkTdCII+KSavjd0YccPGU=";
};
build-system = [
setuptools
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"rcssmin"
"rjsmin"
];
dependencies = [
beautifulsoup4
calmjs
django-appconf
jinja2
rcssmin
rjsmin
];
env.DJANGO_SETTINGS_MODULE = "compressor.test_settings";
nativeCheckInputs = [
beautifulsoup4
brotli
csscompressor
django-sekizai
pytestCheckHook
pytest-django
];
# Getting error: compressor.exceptions.OfflineGenerationError: You have
# offline compression enabled but key "..." is missing from offline manifest.
# You may need to run "python manage.py compress"
disabledTestPaths = [ "compressor/tests/test_offline.py" ];
pythonImportsCheck = [ "compressor" ];
meta = with lib; {
description = "Compresses linked and inline JavaScript or CSS into single cached files";
homepage = "https://django-compressor.readthedocs.org/";
changelog = "https://github.com/django-compressor/django-compressor/blob/${version}/docs/changelog.txt";
license = licenses.mit;
maintainers = with maintainers; [ desiderius ];
};
}
|