lol

Merge pull request #226997 from mweinelt/django-dynamic-preferences-1.15

python310Packages.django-dynamic-preferences: 1.14.0 -> 1.15.0

authored by

Martin Weinelt and committed by
GitHub
57aad37a 48783c46

+36 -9
+36 -9
pkgs/development/python-modules/django-dynamic-preferences/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi 2 - , django, persisting-theory, six 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + 5 + # dependencies 6 + , django 7 + , persisting-theory 8 + , six 9 + 10 + # tests 11 + , djangorestframework 12 + , pytest-django 13 + , pytestCheckHook 3 14 }: 4 15 5 16 buildPythonPackage rec { 6 17 pname = "django-dynamic-preferences"; 7 - version = "1.14.0"; 18 + version = "1.15.0"; 19 + format = "setuptools"; 8 20 9 - src = fetchPypi { 10 - inherit pname version; 11 - hash = "sha256-wAq8uNUkBnOQpmUYz80yaDuHrTzGINWRNkn8dwe4CDM="; 21 + src = fetchFromGitHub { 22 + owner = "agateblue"; 23 + repo = "django-dynamic-preferences"; 24 + rev = "refs/tags/${version}"; 25 + hash = "sha256-S0PAlSrMOQ68mX548pZzARfau/lytXWC4S5uVO1rUmo="; 12 26 }; 13 27 14 - propagatedBuildInputs = [ six django persisting-theory ]; 28 + buildInputs = [ 29 + django 30 + ]; 15 31 16 - # django.core.exceptions.ImproperlyConfigured: Requested setting DYNAMIC_PREFERENCES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings 17 - doCheck = false; 32 + propagatedBuildInputs = [ 33 + six 34 + persisting-theory 35 + ]; 36 + 37 + nativeCheckInputs = [ 38 + djangorestframework 39 + pytestCheckHook 40 + pytest-django 41 + ]; 42 + 43 + env.DJANGO_SETTINGS = "tests.settings"; 18 44 19 45 meta = with lib; { 46 + changelog = "https://github.com/agateblue/django-dynamic-preferences/blob/${version}/HISTORY.rst"; 20 47 homepage = "https://github.com/EliotBerriot/django-dynamic-preferences"; 21 48 description = "Dynamic global and instance settings for your django project"; 22 49 license = licenses.bsd3;