From 77a72a4f598df83b370fb24573b5263ad4b1ac74 Mon Sep 17 00:00:00 2001 From: Ryan Sundberg Date: Mon, 10 May 2021 22:45:38 -0700 Subject: [PATCH 49/55] python-requestsexceptions: new package --- gnu/packages/openstack.scm | 23 +++++++++++++++++++ ...thon-requestsexceptions-requirements.patch | 10 ++++++++ 2 files changed, 33 insertions(+) create mode 100644 gnu/packages/patches/python-requestsexceptions-requirements.patch diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 30501cf3e0..ac6d7f816d 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -976,6 +976,29 @@ SQLite for its identity store database, with the option to connect to external LDAP.") (license asl2.0))) +(define-public python-requestsexceptions + (package + (name "python-requestsexceptions") + (version "1.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "requestsexceptions" version)) + (sha256 + (base32 + "0r9hp9yzgj8r81q5gc6r8sgxldqc09xi6ax0b7a6dw0qfv3wp5dh")) + (patches (search-patches "python-requestsexceptions-requirements.patch")))) + (build-system python-build-system) + (native-inputs + `(("python-hacking" ,python-hacking) + ("python-pbr" ,python-pbr))) + (home-page "http://www.openstack.org/") + (synopsis + "Import exceptions from potentially bundled packages in requests.") + (description + "Import exceptions from potentially bundled packages in requests.") + (license asl2.0))) + (define-public python-swiftclient (package (name "python-swiftclient") diff --git a/gnu/packages/patches/python-requestsexceptions-requirements.patch b/gnu/packages/patches/python-requestsexceptions-requirements.patch new file mode 100644 index 0000000000..fdffa43432 --- /dev/null +++ b/gnu/packages/patches/python-requestsexceptions-requirements.patch @@ -0,0 +1,10 @@ +diff --git a/test-requirements.txt b/test-requirements.txt +index e069914..ea88824 100644 +--- a/test-requirements.txt ++++ b/test-requirements.txt +@@ -1,4 +1,4 @@ + # 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!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 ++hacking!=0.13.0,>=0.12.0 # Apache-2.0 -- 2.31.1