2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
2021-10-31 13:22:53 +00:00
|
|
|
, python-mimeparse
|
2017-09-05 10:16:41 +01:00
|
|
|
, extras
|
|
|
|
, unittest2
|
|
|
|
, traceback2
|
2018-02-10 14:21:51 +00:00
|
|
|
, testscenarios
|
2017-09-05 10:16:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testtools";
|
2021-08-26 20:32:46 +01:00
|
|
|
version = "2.5.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 20:32:46 +01:00
|
|
|
sha256 = "57c13433d94f9ffde3be6534177d10fb0c1507cc499319128958ca91a65cb23f";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2022-01-05 06:31:57 +00:00
|
|
|
propagatedBuildInputs = [ pbr python-mimeparse extras ];
|
2017-09-05 10:16:41 +01:00
|
|
|
buildInputs = [ traceback2 ];
|
|
|
|
|
2018-02-10 14:21:51 +00:00
|
|
|
# testscenarios has a circular dependency on testtools
|
2017-09-05 10:16:41 +01:00
|
|
|
doCheck = false;
|
2018-02-10 14:21:51 +00:00
|
|
|
checkInputs = [ testscenarios ];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2017-12-30 13:01:50 +00:00
|
|
|
# testtools 2.0.0 and up has a circular run-time dependency on futures
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt --replace "fixtures>=1.3.0" ""
|
|
|
|
'';
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
meta = {
|
|
|
|
description = "A set of extensions to the Python standard library's unit testing framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/testtools";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2018-02-10 14:21:51 +00:00
|
|
|
}
|