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