From 99c44d82ed19a3eb657f41134fd4d8eca8eaa999 Mon Sep 17 00:00:00 2001 From: Ryan Sundberg Date: Mon, 10 May 2021 22:47:19 -0700 Subject: [PATCH 50/55] python-openstacksdk: new package --- gnu/packages/openstack.scm | 66 +++++++++++++++++++ .../python-openstacksdk-requirements.patch | 13 ++++ 2 files changed, 79 insertions(+) create mode 100644 gnu/packages/patches/python-openstacksdk-requirements.patch diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index ac6d7f816d..638d4e5436 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -27,6 +27,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages check) #:use-module (gnu packages gnupg) + #:use-module (gnu packages monitoring) #:use-module (gnu packages python) #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) @@ -999,6 +1000,71 @@ LDAP.") "Import exceptions from potentially bundled packages in requests.") (license asl2.0))) +(define-public python-openstacksdk + (package + (name "python-openstacksdk") + (version "0.56.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "openstacksdk" version)) + (sha256 + (base32 + "0nzn1q93333shwn5fnz69lh6cq0im1d3vwwmkw2yy0snd9s36xlw")) + (patches (search-patches "python-openstacksdk-requirements.patch")))) + (build-system python-build-system) + (arguments + `(; Tests are unstable due to timeouts (3785 pass, 5 fail) + #:tests? #f + ;#:phases + ;(modify-phases %standard-phases + ; (replace 'check + ; (lambda _ + ; (invoke "stestr" "run") + ; #t))) + )) + (native-inputs + `(("python-hacking" ,python-hacking) + ("python-coverage" ,python-coverage) + ("python-ddt" ,python-ddt) + ("python-fixtures" ,python-fixtures) + ("python-jsonschema" , python-jsonschema) + ("python-prometheus-client" ,python-prometheus-client) + ("python-oslo.config" ,python-oslo.config) + ("python-oslotest" ,python-oslotest) + ("python-requests-mock" ,python-requests-mock) + ("python-statsd" ,python-statsd) + ("python-stestr" ,python-stestr) + ("python-testscenarios" ,python-testscenarios) + ("python-testtools" ,python-testtools) + ("which" ,which))) + (propagated-inputs + `(("python-appdirs" ,python-appdirs) + ("python-cryptography" ,python-cryptography) + ("python-decorator" ,python-decorator) + ("python-dogpile.cache" ,python-dogpile.cache) + ("python-importlib-metadata" + ,python-importlib-metadata) + ("python-iso8601" ,python-iso8601) + ("python-jmespath" ,python-jmespath) + ("python-jsonpatch" ,python-jsonpatch) + ("python-keystoneauth1" ,python-keystoneauth1) + ("python-munch" ,python-munch) + ("python-netifaces" ,python-netifaces) + ("python-os-service-types" + ,python-os-service-types) + ("python-pbr" ,python-pbr) + ("python-pyyaml" ,python-pyyaml) + ("python-requestsexceptions" + ,python-requestsexceptions))) + (home-page + "https://docs.openstack.org/openstacksdk/") + (synopsis + "An SDK for building applications to work with OpenStack") + (description + "An SDK for building applications to work with OpenStack") + (license asl2.0))) + (define-public python-swiftclient (package (name "python-swiftclient") diff --git a/gnu/packages/patches/python-openstacksdk-requirements.patch b/gnu/packages/patches/python-openstacksdk-requirements.patch new file mode 100644 index 0000000000..e53d2084a4 --- /dev/null +++ b/gnu/packages/patches/python-openstacksdk-requirements.patch @@ -0,0 +1,13 @@ +diff --git a/test-requirements.txt b/test-requirements.txt +index 3f22c9d1..1fc940b7 100644 +--- a/test-requirements.txt ++++ b/test-requirements.txt +@@ -1,7 +1,7 @@ + # The order of packages is significant, because pip processes them in the order + # of appearance. Changing the order has an impact on the overall integration + # process, which may cause wedges in the gate later. +-hacking>=3.1.0,<4.0.0 # Apache-2.0 ++hacking>=3.1.0 # Apache-2.0 + + coverage!=4.4,>=4.0 # Apache-2.0 + ddt>=1.0.1 # MIT -- 2.31.1