2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonRelaxDepsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pbr
|
2021-12-06 16:07:01 +00:00
|
|
|
, python-mimeparse
|
2020-04-24 23:36:52 +00:00
|
|
|
, extras
|
|
|
|
, traceback2
|
|
|
|
, testscenarios
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testtools";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-KLZeFMDy0+y7+19VydzeXk+qgKwWo3qCOQmh/jy8swo=";
|
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 ];
|
2022-05-18 14:49:53 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# testscenarios has a circular dependency on testtools
|
|
|
|
doCheck = false;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ testscenarios ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pythonRemoveDeps = [ "fixtures" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|