nixpkgs/pkgs/development/python-modules/stevedore/default.nix
2024-12-08 10:08:46 +01:00

50 lines
929 B
Nix

{
lib,
buildPythonPackage,
callPackage,
fetchPypi,
pythonOlder,
importlib-metadata,
pbr,
setuptools,
}:
buildPythonPackage rec {
pname = "stevedore";
version = "5.4.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-eekiNey4KP6VK2uLDGyHhjJIYxkiyOjg+lsXsjLEUU0=";
};
build-system = [
pbr
setuptools
];
dependencies = [
importlib-metadata
setuptools
];
# Checks moved to 'passthru.tests' to workaround infinite recursion
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "stevedore" ];
meta = with lib; {
description = "Manage dynamic plugins for Python applications";
homepage = "https://docs.openstack.org/stevedore/";
license = licenses.asl20;
maintainers = teams.openstack.members ++ (with maintainers; [ fab ]);
};
}