python27Packages.unittest: remove completely
This commit is contained in:
parent
de0f03b56d
commit
73dea7fb56
|
@ -1,7 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, unittest2
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -13,7 +12,8 @@ buildPythonPackage rec {
|
||||||
sha256 = "01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e";
|
sha256 = "01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ unittest2 ];
|
# requires unittest2, which has been removed
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Backports and enhancements for the contextlib module";
|
description = "Backports and enhancements for the contextlib module";
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
, nose
|
, nose
|
||||||
, coverage
|
, coverage
|
||||||
, wheel
|
, wheel
|
||||||
, unittest2
|
|
||||||
, botocore
|
, botocore
|
||||||
, futures ? null
|
, futures ? null
|
||||||
}:
|
}:
|
||||||
|
@ -32,7 +31,6 @@ buildPythonPackage rec {
|
||||||
nose
|
nose
|
||||||
coverage
|
coverage
|
||||||
wheel
|
wheel
|
||||||
unittest2
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -143,8 +143,6 @@ with self; with super; {
|
||||||
|
|
||||||
typing = callPackage ../development/python2-modules/typing { };
|
typing = callPackage ../development/python2-modules/typing { };
|
||||||
|
|
||||||
unittest2 = callPackage ../development/python2-modules/unittest2 { };
|
|
||||||
|
|
||||||
zeek = disabled super.zeek;
|
zeek = disabled super.zeek;
|
||||||
|
|
||||||
zipp = callPackage ../development/python2-modules/zipp { };
|
zipp = callPackage ../development/python2-modules/zipp { };
|
||||||
|
|
Loading…
Reference in a new issue