2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
callPackage,
|
|
|
|
fetchPypi,
|
|
|
|
platformdirs,
|
|
|
|
cryptography,
|
|
|
|
dogpile-cache,
|
|
|
|
jmespath,
|
|
|
|
jsonpatch,
|
|
|
|
keystoneauth1,
|
|
|
|
munch,
|
|
|
|
netifaces,
|
|
|
|
os-service-types,
|
|
|
|
pbr,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
requestsexceptions,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openstacksdk";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.3.0";
|
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-BghpDKN8pzMnsPo3YdF+ZTlb43/yALhzXY8kJ3tPSYA=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-01-13 08:15:51 +00:00
|
|
|
platformdirs
|
2021-09-18 10:52:07 +00:00
|
|
|
cryptography
|
2021-12-06 16:07:01 +00:00
|
|
|
dogpile-cache
|
2021-09-18 10:52:07 +00:00
|
|
|
jmespath
|
|
|
|
jsonpatch
|
|
|
|
keystoneauth1
|
|
|
|
munch
|
|
|
|
netifaces
|
|
|
|
os-service-types
|
|
|
|
pbr
|
|
|
|
requestsexceptions
|
2021-09-22 15:38:15 +00:00
|
|
|
pyyaml
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
# Checks moved to 'passthru.tests' to workaround slowness
|
|
|
|
doCheck = false;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
passthru.tests = {
|
|
|
|
tests = callPackage ./tests.nix { };
|
|
|
|
};
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "openstack" ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "SDK for building applications to work with OpenStack";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "openstack-inventory";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/openstack/openstacksdk";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|