blob: bfa0cac644309818a7abdc267d09435e64b15951 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, django
, six
, python
}:
buildPythonPackage rec {
pname = "django-appconf";
version = "1.0.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "django-compressor";
repo = "django-appconf";
rev = version;
sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h";
};
propagatedBuildInputs = [
django
six
];
preCheck = ''
# prove we're running tests against installed package, not build dir
rm -r appconf
'';
checkPhase = ''
runHook preCheck
${python.interpreter} -m django test --settings=tests.test_settings
runHook postCheck
'';
meta = with lib; {
description = "A helper class for handling configuration defaults of packaged apps gracefully";
homepage = "https://django-appconf.readthedocs.org/";
license = licenses.bsd2;
maintainers = with maintainers; [ desiderius ];
};
}
|