about summary refs log tree commit diff
path: root/pkgs/development/python-modules/testtools
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2022-04-28 22:58:28 +0100
committerThiago Kenji Okada <thiagokokada@gmail.com>2022-04-30 13:20:01 +0100
commit4ca1a5fd256cb3ae44cae0d421926fa1a6155177 (patch)
tree66ac360902371ddc8998b3619e75b65a9bcc5c05 /pkgs/development/python-modules/testtools
parent6e95481822edd16b900bc63416c06eaa98f32a53 (diff)
python3Packages.testtools: use pythonRelaxDepsHook
Diffstat (limited to 'pkgs/development/python-modules/testtools')
-rw-r--r--pkgs/development/python-modules/testtools/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/testtools/default.nix b/pkgs/development/python-modules/testtools/default.nix
index 84900ad5477e9..430d0374ef20d 100644
--- a/pkgs/development/python-modules/testtools/default.nix
+++ b/pkgs/development/python-modules/testtools/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, pythonRelaxDepsHook
 , pbr
 , python-mimeparse
 , extras
@@ -20,15 +21,13 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [ pbr python-mimeparse extras ];
   buildInputs = [ traceback2 ];
+  nativeBuildInputs = [ pythonRelaxDepsHook ];
 
   # testscenarios has a circular dependency on testtools
   doCheck = false;
   checkInputs = [ testscenarios ];
 
-  # testtools 2.0.0 and up has a circular run-time dependency on futures
-  postPatch = ''
-    substituteInPlace requirements.txt --replace "fixtures>=1.3.0" ""
-  '';
+  pythonRemoveDeps = [ "fixtures" ];
 
   meta = {
     description = "A set of extensions to the Python standard library's unit testing framework";