504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
843 B
Nix
37 lines
843 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonRelaxDepsHook
|
|
, pbr
|
|
, python-mimeparse
|
|
, extras
|
|
, traceback2
|
|
, testscenarios
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "testtools";
|
|
version = "2.6.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-KLZeFMDy0+y7+19VydzeXk+qgKwWo3qCOQmh/jy8swo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pbr python-mimeparse extras ];
|
|
buildInputs = [ traceback2 ];
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
# testscenarios has a circular dependency on testtools
|
|
doCheck = false;
|
|
nativeCheckInputs = [ testscenarios ];
|
|
|
|
pythonRemoveDeps = [ "fixtures" ];
|
|
|
|
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;
|
|
};
|
|
}
|