@@ -1,5 +1,6 @@
11{ stdenv, buildPythonPackage, fetchurl
22, pytest, django, setuptools_scm
3+, fetchpatch
34}:
45buildPythonPackage rec {
56 name = "pytest-django-${version}";
@@ -13,6 +14,17 @@ buildPythonPackage rec {
1314 buildInputs = [ pytest setuptools_scm ];
1415 propagatedBuildInputs = [ django ];
1516
17+ patches = [
18+ # Unpin setuptools-scm
19+ (fetchpatch {
20+ url = "https://github.com/pytest-dev/pytest-django/commit/25cbc3b395dcdeb92bdc9414e296680c2b9d602e.patch";
21+ sha256 = "1mx06y4kz2zs41mb2h9bh5p4jc6s6hfsq6fghhsks5b7qak05xjp";
22+ })
23+ ];
24+
25+ # Complicated. Requires Django setup.
26+ doCheck = false;
27+
1628 meta = with stdenv.lib; {
1729 description = "py.test plugin for testing of Django applications";
1830 homepage = http://pytest-django.readthedocs.org/en/latest/;