2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fixtures
|
|
|
|
, pbr
|
2023-08-10 07:59:29 +00:00
|
|
|
, six
|
2021-09-18 10:52:07 +00:00
|
|
|
, subunit
|
|
|
|
, callPackage
|
|
|
|
}:
|
|
|
|
|
|
|
|
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-04-21 15:54:59 +00:00
|
|
|
sha256 = "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 = {
|
|
|
|
tests = callPackage ./tests.nix {};
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oslotest" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oslo test framework";
|
|
|
|
homepage = "https://github.com/openstack/oslotest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|