1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # propagates
10 python-dateutil,
11
12 # tests
13 django-extensions,
14 pytest-django,
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "django-hierarkey";
20 version = "2.0.1";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "raphaelm";
25 repo = "django-hierarkey";
26 tag = version;
27 hash = "sha256-zIz7aokOGLGXV/xJnYcz8lBP7b2rxLrfaD3i/DLpFR8=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [ python-dateutil ];
33
34 pythonImportsCheck = [ "hierarkey" ];
35
36 nativeCheckInputs = [
37 django-extensions
38 pytest-django
39 pytestCheckHook
40 ];
41
42 DJANGO_SETTINGS_MODULE = "tests.settings";
43
44 enabledTestPaths = [ "tests" ];
45
46 meta = with lib; {
47 description = "Flexible and powerful hierarchical key-value store for your Django models";
48 homepage = "https://github.com/raphaelm/django-hierarkey";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ hexa ];
51 };
52}