2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-09-22 15:38:15 +00:00
|
|
|
, callPackage
|
2021-09-18 10:52:07 +00:00
|
|
|
, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, 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
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2021-09-22 15:38:15 +00:00
|
|
|
, pyyaml
|
2021-09-18 10:52:07 +00:00
|
|
|
, requestsexceptions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openstacksdk";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "0.100.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-18 16:21:45 +00:00
|
|
|
hash = "sha256-AT9WDdoxtW5sGiL0h9n4y/3xvClcDoh1N3TFVHjPB0c=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
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
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"openstack"
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An SDK for building applications to work with OpenStack";
|
|
|
|
homepage = "https://github.com/openstack/openstacksdk";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|