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