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
|
2021-09-22 15:38:15 +00:00
|
|
|
, pyyaml
|
2021-09-18 10:52:07 +00:00
|
|
|
, requestsexceptions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openstacksdk";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "0.61.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "3eed308871230f0c53a8f58b6c5a358b184080c6b2c6bc69ab088eea057aa127";
|
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
|
|
|
|
|
|
|
pythonImportsCheck = [ "openstack" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|