Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 51 lines 1.2 kB view raw
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.0.6"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "django-compressor"; 20 repo = "django-appconf"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-H9MwX5LtHkYN6TshP7rRKlX/iOJZHbQVsZeki95yks4="; 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 maintainers = with maintainers; [ desiderius ]; 50 }; 51}