2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
fixtures,
|
|
|
|
pbr,
|
|
|
|
six,
|
|
|
|
subunit,
|
|
|
|
callPackage,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslotest";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.0.0";
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-97skDGy+8voLq7lRP/PafQ8ozDja+Y70Oy6ISDZ/vSA=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fixtures
|
2023-08-10 07:59:29 +00:00
|
|
|
six
|
2021-09-18 10:52:07 +00:00
|
|
|
subunit
|
|
|
|
];
|
|
|
|
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with other oslo components
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = {
|
2024-06-05 15:53:02 +00:00
|
|
|
tests = callPackage ./tests.nix { };
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oslotest" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oslo test framework";
|
|
|
|
homepage = "https://github.com/openstack/oslotest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|