d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
44 lines
833 B
Nix
44 lines
833 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fixtures
|
|
, pbr
|
|
, six
|
|
, subunit
|
|
, callPackage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslotest";
|
|
version = "4.5.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "360ad2c41ba3ad6f059c7c6e7291450d082c2e5dbb0012e839a829978053dfe6";
|
|
};
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [
|
|
fixtures
|
|
six
|
|
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;
|
|
};
|
|
}
|