mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
python27Packages.unittest: remove completely
This commit is contained in:
parent
de0f03b56d
commit
73dea7fb56
@ -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";
|
||||
|
@ -7,7 +7,6 @@
|
||||
, nose
|
||||
, coverage
|
||||
, wheel
|
||||
, unittest2
|
||||
, botocore
|
||||
, futures ? null
|
||||
}:
|
||||
@ -32,7 +31,6 @@ buildPythonPackage rec {
|
||||
nose
|
||||
coverage
|
||||
wheel
|
||||
unittest2
|
||||
];
|
||||
|
||||
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 { };
|
||||
|
||||
unittest2 = callPackage ../development/python2-modules/unittest2 { };
|
||||
|
||||
zeek = disabled super.zeek;
|
||||
|
||||
zipp = callPackage ../development/python2-modules/zipp { };
|
||||
|
Loading…
Reference in New Issue
Block a user