1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # dependencies
7 django,
8 persisting-theory,
9 six,
10
11 # tests
12 djangorestframework,
13 pytest-django,
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "django-dynamic-preferences";
19 version = "1.15.0";
20 format = "setuptools";
21
22 src = fetchFromGitHub {
23 owner = "agateblue";
24 repo = "django-dynamic-preferences";
25 rev = "refs/tags/${version}";
26 hash = "sha256-S0PAlSrMOQ68mX548pZzARfau/lytXWC4S5uVO1rUmo=";
27 };
28
29 buildInputs = [ django ];
30
31 propagatedBuildInputs = [
32 six
33 persisting-theory
34 ];
35
36 nativeCheckInputs = [
37 djangorestframework
38 pytestCheckHook
39 pytest-django
40 ];
41
42 env.DJANGO_SETTINGS = "tests.settings";
43
44 meta = with lib; {
45 changelog = "https://github.com/agateblue/django-dynamic-preferences/blob/${version}/HISTORY.rst";
46 homepage = "https://github.com/EliotBerriot/django-dynamic-preferences";
47 description = "Dynamic global and instance settings for your django project";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ mmai ];
50 };
51}