2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
cliff,
|
|
|
|
fixtures,
|
|
|
|
future,
|
|
|
|
pbr,
|
|
|
|
setuptools,
|
|
|
|
subunit,
|
|
|
|
testtools,
|
|
|
|
tomlkit,
|
|
|
|
voluptuous,
|
|
|
|
callPackage,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stestr";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "4.1.0";
|
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-X2HDae7OY8KS0TWZ4SqhWK92hZkGQ/JN1vp/q/406Yo=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cliff
|
|
|
|
fixtures
|
|
|
|
future
|
|
|
|
pbr
|
|
|
|
subunit
|
|
|
|
testtools
|
2024-01-13 08:15:51 +00:00
|
|
|
tomlkit
|
2021-09-18 10:52:07 +00:00
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with other oslo components
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
tests = callPackage ./tests.nix { };
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "stestr" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Parallel Python test runner built around subunit";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "stestr";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/mtreinish/stestr";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|