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
|
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
|
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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.0.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;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-aXy2JRXFSNO3/Fyz+GXiebkw05433OsR2HH4H5+lkeg=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|