2017-09-05 11:16:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
|
|
|
, python_mimeparse
|
|
|
|
, extras
|
|
|
|
, unittest2
|
|
|
|
, traceback2
|
2018-02-10 15:21:51 +01:00
|
|
|
, testscenarios
|
2017-09-05 11:16:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testtools";
|
2017-12-30 14:01:50 +01:00
|
|
|
version = "2.3.0";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 14:01:50 +01:00
|
|
|
sha256 = "5827ec6cf8233e0f29f51025addd713ca010061204fdea77484a2934690a0559";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
2018-02-10 15:21:51 +01:00
|
|
|
propagatedBuildInputs = [ pbr python_mimeparse extras unittest2 ];
|
2017-09-05 11:16:41 +02:00
|
|
|
buildInputs = [ traceback2 ];
|
|
|
|
|
2018-02-10 15:21:51 +01:00
|
|
|
# testscenarios has a circular dependency on testtools
|
2017-09-05 11:16:41 +02:00
|
|
|
doCheck = false;
|
2018-02-10 15:21:51 +01:00
|
|
|
checkInputs = [ testscenarios ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2017-12-30 14:01:50 +01: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 11:16:41 +02:00
|
|
|
meta = {
|
|
|
|
description = "A set of extensions to the Python standard library's unit testing framework";
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://pypi.python.org/pypi/testtools;
|
2017-09-05 11:16:41 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2018-02-10 15:21:51 +01:00
|
|
|
}
|