Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-hierarkey / default.nix
blob77f33f0b526c55d252364117aa389671e9f3ef10
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # propagates
6 , python-dateutil
8 # tests
9 , django-extensions
10 , pytest-django
11 , pytestCheckHook
14 buildPythonPackage rec {
15   pname = "django-hierarkey";
16   version = "1.1.0";
17   format = "setuptools";
19   src = fetchFromGitHub {
20     owner = "raphaelm";
21     repo = "django-hierarkey";
22     # https://github.com/raphaelm/django-hierarkey/commit/c81ace02ca404a8756e2931bb6faf55b6365e140
23     rev = "c81ace02ca404a8756e2931bb6faf55b6365e140";
24     hash = "sha256-sCARyTjuuAUptlOsFmApnsQpcksP+uYnq0lukXDMcuk=";
25   };
27   propagatedBuildInputs = [
28     python-dateutil
29   ];
31   pythonImportsCheck = [
32     "hierarkey"
33   ];
35   nativeCheckInputs = [
36     django-extensions
37     pytest-django
38     pytestCheckHook
39   ];
41   DJANGO_SETTINGS_MODULE = "tests.settings";
43   pytestFlagsArray = [
44     "tests"
45   ];
47   meta = with lib; {
48     description = "Flexible and powerful hierarchical key-value store for your Django models";
49     homepage = "https://github.com/raphaelm/django-hierarkey";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ hexa ];
52   };