mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
37 lines
831 B
Nix
37 lines
831 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonRelaxDepsHook
|
|
, pbr
|
|
, python-mimeparse
|
|
, extras
|
|
, 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;
|
|
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;
|
|
};
|
|
}
|