Files
nixpkgs/pkgs/development/python-modules/oslotest/default.nix
2025-05-08 08:42:39 +00:00

46 lines
819 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fixtures,
pbr,
six,
subunit,
callPackage,
}:
buildPythonPackage rec {
pname = "oslotest";
version = "5.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-WpRA0o2MywC89f56BWkEF+pilDsMjpOkMX2LG9Au6O4=";
};
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;
teams = [ teams.openstack ];
};
}