Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 27 lines 809 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, six, django }: 2buildPythonPackage rec { 3 pname = "django-appconf"; 4 version = "1.0.3"; 5 6 src = fetchFromGitHub { 7 owner = "django-compressor"; 8 repo = "django-appconf"; 9 rev = version; 10 sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h"; 11 }; 12 13 propagatedBuildInputs = [ six django ]; 14 15 checkPhase = '' 16 # prove we're running tests against installed package, not build dir 17 rm -r appconf 18 python -m django test --settings="tests.test_settings" 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "A helper class for handling configuration defaults of packaged apps gracefully"; 23 homepage = https://django-appconf.readthedocs.org/; 24 license = licenses.bsd2; 25 maintainers = with maintainers; [ desiderius ]; 26 }; 27}