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-12-02 08:20:57 +00:00
|
|
|
version = "0.103.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-12-02 08:20:57 +00:00
|
|
|
hash = "sha256-T58RiYZgOWdDXzl2s+BZlQpxvY5BqDFsyK+y2WaKB0E=";
|
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;
|
|
|
|
};
|
|
|
|
}
|