summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2017-01-21 21:56:37 +0100
committerLancelot SIX <lsix@lancelotsix.com>2017-01-24 22:13:20 +0100
commitb6e5976d4b55e15b5f204a659c92fbb87b7d9031 (patch)
tree4e72163a70689c34851b88c481b23ed5995b0483 /pkgs
parent93d0e4ab5b790207842d7bba03d5bc3383c55edf (diff)
downloadnixlib-b6e5976d4b55e15b5f204a659c92fbb87b7d9031.tar
nixlib-b6e5976d4b55e15b5f204a659c92fbb87b7d9031.tar.gz
nixlib-b6e5976d4b55e15b5f204a659c92fbb87b7d9031.tar.bz2
nixlib-b6e5976d4b55e15b5f204a659c92fbb87b7d9031.tar.lz
nixlib-b6e5976d4b55e15b5f204a659c92fbb87b7d9031.tar.xz
nixlib-b6e5976d4b55e15b5f204a659c92fbb87b7d9031.tar.zst
nixlib-b6e5976d4b55e15b5f204a659c92fbb87b7d9031.zip
pythonPackages.django_guardian: 1.4.4 -> 1.4.6
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/django_guardian.nix26
-rw-r--r--pkgs/top-level/python-packages.nix23
2 files changed, 28 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/django_guardian.nix b/pkgs/development/python-modules/django_guardian.nix
new file mode 100644
index 000000000000..c9217955213d
--- /dev/null
+++ b/pkgs/development/python-modules/django_guardian.nix
@@ -0,0 +1,26 @@
+{ stdenv, buildPythonPackage, python, fetchurl
+, django_environ, mock, django, six
+, pytest, pytestrunner, pytestdjango, setuptools_scm
+}:
+buildPythonPackage rec {
+  name = "django-guardian-${version}";
+  version = "1.4.6";
+
+  src = fetchurl {
+    url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
+    sha256 = "1r3xj0ik0hh6dfak4kjndxk5v73x95nfbppgr394nhnmiayv4zc5";
+  };
+
+  buildInputs = [ pytest pytestrunner pytestdjango django_environ mock setuptools_scm ];
+  propagatedBuildInputs = [ django six ];
+
+  checkPhase = ''
+    ${python.interpreter} nix_run_setup.py test --addopts="--ignore build"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Per object permissions for Django";
+    homepage = https://github.com/django-guardian/django-guardian;
+    licenses = [ licenses.mit licenses.bsd2 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 893cce234c1c..0118abd57cf8 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -10405,27 +10405,8 @@ in {
     };
   };
 
-  django_guardian = buildPythonPackage rec {
-    name = "django-guardian-${version}";
-    version = "1.4.4";
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
-      sha256 = "1m7y3brk3697hr2cvkzl8dry4pp7wkmhvxmf8db1ardz1r9d8895";
-    };
-
-    buildInputs = with self ; [ pytest pytestrunner pytestdjango django_environ mock ];
-    propagatedBuildInputs = with self ; [ django six ];
-
-    checkPhase = ''
-      ${python.interpreter} nix_run_setup.py test --addopts="--ignore build"
-    '';
-
-    meta = {
-      description = "Per object permissions for Django";
-      homepage = https://github.com/django-guardian/django-guardian;
-      licenses = [ licenses.mit licenses.bsd2 ];
-    };
+  django_guardian = callPackage ../development/python-modules/django_guardian.nix {
+    pytest = self.pytest_30;
   };
 
   django_tagging = buildPythonPackage rec {