summary refs log tree commit diff
path: root/pkgs/development/python-modules/testtools
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-12-30 14:01:50 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2017-12-31 11:01:55 +0100
commitb368eb2666ddee76319c7e253f945ec5191171c7 (patch)
tree550d9973b1bdb603e485c99971f96c15a848b509 /pkgs/development/python-modules/testtools
parent085f545306aaa8c98e8cc2441bdca5106093b4f5 (diff)
downloadnixlib-b368eb2666ddee76319c7e253f945ec5191171c7.tar
nixlib-b368eb2666ddee76319c7e253f945ec5191171c7.tar.gz
nixlib-b368eb2666ddee76319c7e253f945ec5191171c7.tar.bz2
nixlib-b368eb2666ddee76319c7e253f945ec5191171c7.tar.lz
nixlib-b368eb2666ddee76319c7e253f945ec5191171c7.tar.xz
nixlib-b368eb2666ddee76319c7e253f945ec5191171c7.tar.zst
nixlib-b368eb2666ddee76319c7e253f945ec5191171c7.zip
python: testtools: 1.9.0 -> 2.3.0
Diffstat (limited to 'pkgs/development/python-modules/testtools')
-rw-r--r--pkgs/development/python-modules/testtools/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/testtools/default.nix b/pkgs/development/python-modules/testtools/default.nix
index e786cb843296..eb6a6694b05c 100644
--- a/pkgs/development/python-modules/testtools/default.nix
+++ b/pkgs/development/python-modules/testtools/default.nix
@@ -12,19 +12,18 @@
 , pyrsistent
 }:
 
-# testtools 2.0.0 and up has a circular run-time dependency on futures
+
 
 buildPythonPackage rec {
   pname = "testtools";
-  version = "1.9.0";
-  name = "${pname}-${version}";
+  version = "2.3.0";
 
   # Python 2 only judging from SyntaxError
 #   disabled = isPy3k;
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "b46eec2ad3da6e83d53f2b0eca9a8debb687b4f71343a074f83a16bbdb3c0644";
+    sha256 = "5827ec6cf8233e0f29f51025addd713ca010061204fdea77484a2934690a0559";
   };
 
   propagatedBuildInputs = [ pbr python_mimeparse extras lxml unittest2 pyrsistent ];
@@ -33,6 +32,11 @@ buildPythonPackage rec {
   # No tests in archive
   doCheck = false;
 
+  # testtools 2.0.0 and up has a circular run-time dependency on futures
+  postPatch = ''
+    substituteInPlace requirements.txt --replace "fixtures>=1.3.0" ""
+  '';
+
   meta = {
     description = "A set of extensions to the Python standard library's unit testing framework";
     homepage = https://pypi.python.org/pypi/testtools;