Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# propagates 6, python-dateutil 7 8# tests 9, django-extensions 10, pytest-django 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "django-hierarkey"; 16 version = "1.1.0"; 17 format = "setuptools"; 18 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 }; 26 27 propagatedBuildInputs = [ 28 python-dateutil 29 ]; 30 31 pythonImportsCheck = [ 32 "hierarkey" 33 ]; 34 35 nativeCheckInputs = [ 36 django-extensions 37 pytest-django 38 pytestCheckHook 39 ]; 40 41 DJANGO_SETTINGS_MODULE = "tests.settings"; 42 43 pytestFlagsArray = [ 44 "tests" 45 ]; 46 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 }; 53}