summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-django
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-03-16 12:39:43 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2017-03-16 12:40:43 +0100
commit645c2189d14ee95d22efb08e42a2bb3ca7e74a04 (patch)
tree278455fd8ff0dd7cf1467daef52c1ae5f05fee06 /pkgs/development/python-modules/pytest-django
parent9bd988eb0f4c4aaa2c89d9898a846edb0dc9aa80 (diff)
downloadnixlib-645c2189d14ee95d22efb08e42a2bb3ca7e74a04.tar
nixlib-645c2189d14ee95d22efb08e42a2bb3ca7e74a04.tar.gz
nixlib-645c2189d14ee95d22efb08e42a2bb3ca7e74a04.tar.bz2
nixlib-645c2189d14ee95d22efb08e42a2bb3ca7e74a04.tar.lz
nixlib-645c2189d14ee95d22efb08e42a2bb3ca7e74a04.tar.xz
nixlib-645c2189d14ee95d22efb08e42a2bb3ca7e74a04.tar.zst
nixlib-645c2189d14ee95d22efb08e42a2bb3ca7e74a04.zip
pythonPackages.pytest-django: unpin setuptools_scm
- unpin setuptools_scm
- move to file in folder following guidelines
- use PyPI/upstream name
Diffstat (limited to 'pkgs/development/python-modules/pytest-django')
-rw-r--r--pkgs/development/python-modules/pytest-django/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-django/default.nix b/pkgs/development/python-modules/pytest-django/default.nix
new file mode 100644
index 000000000000..48a5c043841a
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-django/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, buildPythonPackage, fetchurl
+, pytest, django, setuptools_scm
+, fetchpatch
+}:
+buildPythonPackage rec {
+  name = "pytest-django-${version}";
+  version = "3.1.2";
+
+  src = fetchurl {
+    url = "mirror://pypi/p/pytest-django/${name}.tar.gz";
+    sha256 = "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303";
+  };
+
+  buildInputs = [ pytest setuptools_scm ];
+  propagatedBuildInputs = [ django ];
+
+  patches = [
+    # Unpin setuptools-scm
+    (fetchpatch {
+      url = "https://github.com/pytest-dev/pytest-django/commit/25cbc3b395dcdeb92bdc9414e296680c2b9d602e.patch";
+      sha256 = "1mx06y4kz2zs41mb2h9bh5p4jc6s6hfsq6fghhsks5b7qak05xjp";
+    })
+  ];
+
+  # Complicated. Requires Django setup.
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "py.test plugin for testing of Django applications";
+    homepage = http://pytest-django.readthedocs.org/en/latest/;
+    license = licenses.bsd3;
+  };
+}