python27Packages.unittest: remove completely

This commit is contained in:
Theodore Ni 2022-12-02 16:11:51 -08:00
parent de0f03b56d
commit 73dea7fb56
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474
4 changed files with 2 additions and 43 deletions

View file

@ -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";

View file

@ -7,7 +7,6 @@
, nose
, coverage
, wheel
, unittest2
, botocore
, futures ? null
}:
@ -32,7 +31,6 @@ buildPythonPackage rec {
nose
coverage
wheel
unittest2
];
checkPhase = ''

View file

@ -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;
};
}

View file

@ -143,8 +143,6 @@ with self; with super; {
typing = callPackage ../development/python2-modules/typing { };
unittest2 = callPackage ../development/python2-modules/unittest2 { };
zeek = disabled super.zeek;
zipp = callPackage ../development/python2-modules/zipp { };