depot/third_party/nixpkgs/pkgs/development/python-modules/testtools/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

37 lines
837 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
, pbr
, python-mimeparse
, extras
, unittest2
, traceback2
, testscenarios
}:
buildPythonPackage rec {
pname = "testtools";
version = "2.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "57c13433d94f9ffde3be6534177d10fb0c1507cc499319128958ca91a65cb23f";
};
propagatedBuildInputs = [ pbr python-mimeparse extras ];
buildInputs = [ traceback2 ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
# testscenarios has a circular dependency on testtools
doCheck = false;
checkInputs = [ 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;
};
}