2021-09-11 12:16:21 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fixtures
|
|
|
|
, pbr
|
|
|
|
, subunit
|
|
|
|
, callPackage
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslotest";
|
|
|
|
version = "4.5.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "360ad2c41ba3ad6f059c7c6e7291450d082c2e5dbb0012e839a829978053dfe6";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fixtures
|
|
|
|
subunit
|
|
|
|
];
|
|
|
|
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with other oslo components
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = {
|
2021-09-14 13:54:10 +02:00
|
|
|
tests = callPackage ./tests.nix {};
|
2021-09-11 12:16:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oslotest" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oslo test framework";
|
|
|
|
homepage = "https://github.com/openstack/oslotest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|