2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
2021-12-06 16:07:01 +00:00
|
|
|
, python-mimeparse
|
2020-04-24 23:36:52 +00:00
|
|
|
, extras
|
|
|
|
, unittest2
|
|
|
|
, traceback2
|
|
|
|
, testscenarios
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testtools";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "57c13433d94f9ffde3be6534177d10fb0c1507cc499319128958ca91a65cb23f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [ pbr python-mimeparse extras ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ traceback2 ];
|
|
|
|
|
|
|
|
# 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" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of extensions to the Python standard library's unit testing framework";
|
|
|
|
homepage = "https://pypi.python.org/pypi/testtools";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|