2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
callPackage,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
importlib-metadata,
|
|
|
|
pbr,
|
|
|
|
setuptools,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stevedore";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "5.3.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-mmQmX0BgMSgoFRwgTvvpt6mFKg2SKHVjRNvH5AI+N1o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
2021-04-26 19:14:03 +00:00
|
|
|
pbr
|
|
|
|
setuptools
|
2024-09-19 14:19:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
importlib-metadata
|
|
|
|
setuptools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# Checks moved to 'passthru.tests' to workaround infinite recursion
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = false;
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
tests = callPackage ./tests.nix { };
|
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "stevedore" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Manage dynamic plugins for Python applications";
|
2021-04-26 19:14:03 +00:00
|
|
|
homepage = "https://docs.openstack.org/stevedore/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = teams.openstack.members ++ (with maintainers; [ fab ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|