2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cliff
|
|
|
|
, fixtures
|
|
|
|
, future
|
|
|
|
, pbr
|
|
|
|
, subunit
|
|
|
|
, testtools
|
|
|
|
, voluptuous
|
|
|
|
, callPackage
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stestr";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "4.0.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-wsHHO/x8/KORJxWeP7x0GTrr8s0C2KBCfy5YZI42zyY=";
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cliff
|
|
|
|
fixtures
|
|
|
|
future
|
|
|
|
pbr
|
|
|
|
subunit
|
|
|
|
testtools
|
|
|
|
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; {
|
|
|
|
description = "A parallel Python test runner built around subunit";
|
|
|
|
homepage = "https://github.com/mtreinish/stestr";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|