1{ 2 lib, 3 buildPythonPackage, 4 django, 5 fetchFromGitHub, 6 python, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "django-appconf"; 13 version = "1.1.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "django-compressor"; 20 repo = "django-appconf"; 21 tag = "v${version}"; 22 hash = "sha256-raK3Q+6cDSOiK5vrgZG65qDUiFOrRhDKxsPOQv/lz8w="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ django ]; 28 29 preCheck = '' 30 # prove we're running tests against installed package, not build dir 31 rm -r appconf 32 ''; 33 34 checkPhase = '' 35 runHook preCheck 36 37 ${python.interpreter} -m django test --settings=tests.test_settings 38 39 runHook postCheck 40 ''; 41 42 pythonImportsCheck = [ "appconf" ]; 43 44 meta = with lib; { 45 description = "Helper class for handling configuration defaults of packaged apps gracefully"; 46 homepage = "https://django-appconf.readthedocs.org/"; 47 changelog = "https://github.com/django-compressor/django-appconf/blob/v${version}/docs/changelog.rst"; 48 license = licenses.bsd2; 49 }; 50}