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 14}: 15 16buildPythonPackage rec { 17 pname = "django-dynamic-preferences"; 18 version = "1.15.0"; 19 format = "setuptools"; 20 21 src = fetchFromGitHub { 22 owner = "agateblue"; 23 repo = "django-dynamic-preferences"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-S0PAlSrMOQ68mX548pZzARfau/lytXWC4S5uVO1rUmo="; 26 }; 27 28 buildInputs = [ 29 django 30 ]; 31 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"; 44 45 meta = with lib; { 46 changelog = "https://github.com/agateblue/django-dynamic-preferences/blob/${version}/HISTORY.rst"; 47 homepage = "https://github.com/EliotBerriot/django-dynamic-preferences"; 48 description = "Dynamic global and instance settings for your django project"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ mmai ]; 51 }; 52}