depot/third_party/nixpkgs/pkgs/development/python-modules/cliff/tests.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

33 lines
529 B
Nix

{ buildPythonPackage
, cliff
, docutils
, stestr
, testscenarios
}:
buildPythonPackage rec {
pname = "cliff";
inherit (cliff) version;
src = cliff.src;
postPatch = ''
# only a small portion of the listed packages are actually needed for running the tests
# so instead of removing them one by one remove everything
rm test-requirements.txt
'';
dontBuild = true;
dontInstall = true;
checkInputs = [
cliff
docutils
stestr
testscenarios
];
checkPhase = ''
stestr run
'';
}