2017-09-05 09:16:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
|
|
|
, python_mimeparse
|
|
|
|
, extras
|
|
|
|
, lxml
|
|
|
|
, unittest2
|
|
|
|
, traceback2
|
|
|
|
, isPy3k
|
2017-10-25 18:04:35 +00:00
|
|
|
, fixtures
|
|
|
|
, pyrsistent
|
2017-09-05 09:16:41 +00:00
|
|
|
}:
|
|
|
|
|
2017-10-25 18:04:35 +00:00
|
|
|
# testtools 2.0.0 and up has a circular run-time dependency on futures
|
|
|
|
|
2017-09-05 09:16:41 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testtools";
|
2017-10-25 18:04:35 +00:00
|
|
|
version = "1.9.0";
|
2017-09-05 09:16:41 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
# Python 2 only judging from SyntaxError
|
|
|
|
# disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 18:04:35 +00:00
|
|
|
sha256 = "b46eec2ad3da6e83d53f2b0eca9a8debb687b4f71343a074f83a16bbdb3c0644";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
2017-10-25 18:04:35 +00:00
|
|
|
propagatedBuildInputs = [ pbr python_mimeparse extras lxml unittest2 pyrsistent ];
|
2017-09-05 09:16:41 +00:00
|
|
|
buildInputs = [ traceback2 ];
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of extensions to the Python standard library's unit testing framework";
|
2017-11-10 21:13:27 +00:00
|
|
|
homepage = https://pypi.python.org/pypi/testtools;
|
2017-09-05 09:16:41 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|