summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-guardian/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/django-guardian/default.nix')
-rw-r--r--pkgs/development/python-modules/django-guardian/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-guardian/default.nix b/pkgs/development/python-modules/django-guardian/default.nix
new file mode 100644
index 00000000000..c6636ee5eab
--- /dev/null
+++ b/pkgs/development/python-modules/django-guardian/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, django-environ
+, mock
+, django
+, pytestCheckHook
+, pytest-django
+}:
+
+buildPythonPackage rec {
+  pname = "django-guardian";
+  version = "2.4.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0";
+  };
+
+  propagatedBuildInputs = [ django ];
+
+  checkInputs = [
+    django-environ
+    mock
+    pytestCheckHook
+    pytest-django
+  ];
+
+  pythonImportsCheck = [ "guardian" ];
+
+  meta = with lib; {
+    description = "Per object permissions for Django";
+    homepage = "https://github.com/django-guardian/django-guardian";
+    license = with licenses; [ mit bsd2 ];
+    maintainers = with maintainers; [ SuperSandro2000 ];
+  };
+}