depot/third_party/nixpkgs/pkgs/development/python-modules/oslotest/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
831 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fixtures,
pbr,
six,
subunit,
callPackage,
}:
buildPythonPackage rec {
pname = "oslotest";
version = "5.0.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-97skDGy+8voLq7lRP/PafQ8ozDja+Y70Oy6ISDZ/vSA=";
};
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;
};
}