16 buildPythonPackage rec {
17 pname = "django-configurations";
19 format = "setuptools";
21 disabled = pythonOlder "3.6";
24 inherit pname version;
25 hash = "sha256-blCDdX4rvfm7eFBWdTa5apNRX2sXUD10ko/2KNsuDpQ=";
28 buildInputs = [ setuptools-scm ];
30 propagatedBuildInputs = [ django ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
41 export PYTHONPATH=.:$PYTHONPATH
42 export DJANGO_SETTINGS_MODULE="tests.settings.main"
43 export DJANGO_CONFIGURATION="Test"
44 ${django}/bin/django-admin.py test
47 # django.core.exceptions.ImproperlyConfigured: django-configurations settings importer wasn't correctly installed
50 pythonImportsCheck = [ "configurations" ];
53 description = "Helper for organizing Django settings";
54 mainProgram = "django-cadmin";
55 homepage = "https://django-configurations.readthedocs.io/";
56 license = licenses.bsd0;