summary refs log tree commit diff
path: root/pkgs/development/python2-modules
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-12-02 16:11:51 -0800
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2022-12-07 14:25:04 -0800
commit73dea7fb5646122d8db3357dd03286696bd74c4a (patch)
treeb1585b05585f62f4631044c1b13d190ca58fa6cd /pkgs/development/python2-modules
parentde0f03b56d15ac17959bc1ee4cf8496db339cd01 (diff)
python27Packages.unittest: remove completely
Diffstat (limited to 'pkgs/development/python2-modules')
-rw-r--r--pkgs/development/python2-modules/contextlib2/default.nix4
-rw-r--r--pkgs/development/python2-modules/s3transfer/default.nix2
-rw-r--r--pkgs/development/python2-modules/unittest2/default.nix37
3 files changed, 2 insertions, 41 deletions
diff --git a/pkgs/development/python2-modules/contextlib2/default.nix b/pkgs/development/python2-modules/contextlib2/default.nix
index 38d9fb696e281..063039448feab 100644
--- a/pkgs/development/python2-modules/contextlib2/default.nix
+++ b/pkgs/development/python2-modules/contextlib2/default.nix
@@ -1,7 +1,6 @@
 { lib
 , buildPythonPackage
 , fetchPypi
-, unittest2
 }:
 
 buildPythonPackage rec {
@@ -13,7 +12,8 @@ buildPythonPackage rec {
     sha256 = "01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e";
   };
 
-  checkInputs = [ unittest2 ];
+  # requires unittest2, which has been removed
+  doCheck = false;
 
   meta = {
     description = "Backports and enhancements for the contextlib module";
diff --git a/pkgs/development/python2-modules/s3transfer/default.nix b/pkgs/development/python2-modules/s3transfer/default.nix
index 8cfd324f00a5a..4fd0fe346add9 100644
--- a/pkgs/development/python2-modules/s3transfer/default.nix
+++ b/pkgs/development/python2-modules/s3transfer/default.nix
@@ -7,7 +7,6 @@
 , nose
 , coverage
 , wheel
-, unittest2
 , botocore
 , futures ? null
 }:
@@ -32,7 +31,6 @@ buildPythonPackage rec {
     nose
     coverage
     wheel
-    unittest2
   ];
 
   checkPhase = ''
diff --git a/pkgs/development/python2-modules/unittest2/default.nix b/pkgs/development/python2-modules/unittest2/default.nix
deleted file mode 100644
index 3eeaeaba1fd26..0000000000000
--- a/pkgs/development/python2-modules/unittest2/default.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-{ lib
-, buildPythonPackage
-, fetchPypi
-, six
-, traceback2
-}:
-
-buildPythonPackage rec {
-  version = "1.1.0";
-  pname = "unittest2";
-
-  src = fetchPypi {
-    inherit pname version;
-    hash = "sha256-IogqDkGMKE4fcYqCKzsCKUTVPS2QjhaQsxmp0+ssBXk=";
-  };
-
-  propagatedBuildInputs = [ six traceback2 ];
-
-  # 1.0.0 and up create a circle dependency with traceback2/pbr
-  doCheck = false;
-
-  postPatch = ''
-    # argparse is needed for python < 2.7, which we do not support anymore.
-    substituteInPlace setup.py --replace "argparse" ""
-
-    # fixes a transient error when collecting tests, see https://bugs.launchpad.net/python-neutronclient/+bug/1508547
-    sed -i '510i\        return None, False' unittest2/loader.py
-    # https://github.com/pypa/packaging/pull/36
-    sed -i 's/version=VERSION/version=str(VERSION)/' setup.py
-  '';
-
-  meta = with lib; {
-    description = "A backport of the new features added to the unittest testing framework";
-    homepage = "https://pypi.org/project/unittest2/";
-    license = licenses.bsd0;
-  };
-}