Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 django-environ, 6 mock, 7 django, 8 pytestCheckHook, 9 pytest-django, 10}: 11 12buildPythonPackage rec { 13 pname = "django-guardian"; 14 version = "2.4.0"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0"; 20 }; 21 22 propagatedBuildInputs = [ django ]; 23 24 nativeCheckInputs = [ 25 django-environ 26 mock 27 pytestCheckHook 28 pytest-django 29 ]; 30 31 pythonImportsCheck = [ "guardian" ]; 32 33 meta = with lib; { 34 description = "Per object permissions for Django"; 35 homepage = "https://github.com/django-guardian/django-guardian"; 36 license = with licenses; [ 37 mit 38 bsd2 39 ]; 40 maintainers = [ ]; 41 }; 42}