2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
debtcollector,
|
|
|
|
netaddr,
|
|
|
|
oslo-i18n,
|
|
|
|
pbr,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
rfc3986,
|
|
|
|
stevedore,
|
|
|
|
callPackage,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslo-config";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "9.4.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.config";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-NbEaZhtgjttQMF2tkeTjCBnZDveUt9fbpb2LLvLrjA0=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# only a small portion of the listed packages are actually needed for running the tests
|
|
|
|
# so instead of removing them one by one remove everything
|
|
|
|
rm test-requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
debtcollector
|
|
|
|
netaddr
|
|
|
|
oslo-i18n
|
|
|
|
pbr
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
rfc3986
|
|
|
|
stevedore
|
|
|
|
];
|
|
|
|
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with other oslo components
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = {
|
2024-06-05 15:53:02 +00:00
|
|
|
tests = callPackage ./tests.nix { };
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oslo_config" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oslo Configuration API";
|
|
|
|
homepage = "https://github.com/openstack/oslo.config";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|