504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cliff
|
|
, fixtures
|
|
, future
|
|
, pbr
|
|
, subunit
|
|
, testtools
|
|
, voluptuous
|
|
, callPackage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "stestr";
|
|
version = "4.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wsHHO/x8/KORJxWeP7x0GTrr8s0C2KBCfy5YZI42zyY=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|