1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 django, 7 six, 8 python, 9}: 10 11buildPythonPackage rec { 12 pname = "django-appconf"; 13 version = "1.0.5"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "django-compressor"; 20 repo = "django-appconf"; 21 rev = "v${version}"; 22 hash = "sha256-nS4Hwp/NYg1XGvZO1tiE9mzJA7WFifyvgAjyp3YpqS4="; 23 }; 24 25 propagatedBuildInputs = [ django ]; 26 27 preCheck = '' 28 # prove we're running tests against installed package, not build dir 29 rm -r appconf 30 ''; 31 32 checkPhase = '' 33 runHook preCheck 34 ${python.interpreter} -m django test --settings=tests.test_settings 35 runHook postCheck 36 ''; 37 38 meta = with lib; { 39 description = "A helper class for handling configuration defaults of packaged apps gracefully"; 40 homepage = "https://django-appconf.readthedocs.org/"; 41 license = licenses.bsd2; 42 maintainers = with maintainers; [ desiderius ]; 43 }; 44}