diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-21 23:45:03 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:54 +0100 |
| commit | a69386e4daf86b9039fb91be1da56c39718bcd44 (patch) | |
| tree | 50b7259de0dd9b65f32f6db33a425a1882c044ee /gnu/packages/openstack.scm | |
| parent | ad416124e2501b2f514f7868422a23cd5060f9df (diff) | |
gnu: python-requestsexceptions: Disable tests.
* gnu/packages/openstack.scm (python-requestsexceptions):
[source]: Switch to git-fetch.
[arguments]<#:tests?>: Disable them.
<#:phases>: Add phase 'set-version.
[native-inputs]: Add python-os-testr. Remove python-wheel.
[synopsis, description]: Improve style.
Change-Id: I9ee0105c2cd7153ecef8dfc38a9ca255a97366ed
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/openstack.scm')
| -rw-r--r-- | gnu/packages/openstack.scm | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index b498766067b..f701e4663ec 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm | |||
| @@ -1153,29 +1153,39 @@ Gerrit for review, or fetching existing ones.") | |||
| 1153 | (version "1.4.0") | 1153 | (version "1.4.0") |
| 1154 | (source | 1154 | (source |
| 1155 | (origin | 1155 | (origin |
| 1156 | (method url-fetch) | 1156 | (method git-fetch) |
| 1157 | (uri (pypi-uri "requestsexceptions" version)) | 1157 | (uri (git-reference |
| 1158 | (url "https://github.com/openstack/requestsexceptions") | ||
| 1159 | (commit version))) | ||
| 1160 | (file-name (git-file-name name version)) | ||
| 1158 | (sha256 | 1161 | (sha256 |
| 1159 | (base32 "0r9hp9yzgj8r81q5gc6r8sgxldqc09xi6ax0b7a6dw0qfv3wp5dh")))) | 1162 | (base32 "12c4bi2vm337sgbbl08i01v794glnk1fzgxdc11545dqdl57rslz")))) |
| 1160 | (build-system pyproject-build-system) | 1163 | (build-system pyproject-build-system) |
| 1161 | (arguments | 1164 | (arguments |
| 1162 | (list | 1165 | (list |
| 1166 | ;; XXX: There are some tests in tox.ini, but it leads nowhere. | ||
| 1167 | #:tests? #f | ||
| 1163 | #:phases | 1168 | #:phases |
| 1164 | #~(modify-phases %standard-phases | 1169 | #~(modify-phases %standard-phases |
| 1165 | (add-after 'unpack 'relax-requirements | 1170 | (add-after 'unpack 'relax-requirements |
| 1166 | (lambda _ | 1171 | (lambda _ |
| 1167 | (substitute* "test-requirements.txt" | 1172 | (substitute* "test-requirements.txt" |
| 1168 | (("hacking.*") | 1173 | (("hacking.*") |
| 1169 | ""))))))) | 1174 | "")))) |
| 1170 | (native-inputs (list python-pbr python-setuptools python-wheel)) | 1175 | (add-after 'unpack 'set-version |
| 1171 | (home-page "https://www.openstack.org/") | 1176 | (lambda _ |
| 1172 | (synopsis "Import exceptions from potentially bundled packages in requests") | 1177 | (setenv "PBR_VERSION" #$version)))))) |
| 1173 | (description "The Python requests library bundles the urllib3 library, | 1178 | (native-inputs (list python-os-testr python-pbr python-setuptools)) |
| 1174 | however, some software distributions modify requests to remove the bundled | 1179 | (home-page "https://github.com/openstack/requestsexceptions") |
| 1175 | library. This makes some operations difficult, such as suppressing the | 1180 | (synopsis |
| 1176 | “insecure platform warning” messages that urllib emits. This package is a | 1181 | "Import exceptions from potentially bundled packages in requests") |
| 1177 | simple library to find the correct path to exceptions in the requests library | 1182 | (description |
| 1178 | regardless of whether they are bundled or not.") | 1183 | "The Python requests library bundles the urllib3 library, however, some |
| 1184 | software distributions modify requests to remove the bundled library. This | ||
| 1185 | makes some operations difficult, such as suppressing the “insecure platform | ||
| 1186 | warning” messages that urllib emits. This package is a simple library to find | ||
| 1187 | the correct path to exceptions in the requests library regardless of whether | ||
| 1188 | they are bundled or not.") | ||
| 1179 | (license license:asl2.0))) | 1189 | (license license:asl2.0))) |
| 1180 | 1190 | ||
| 1181 | (define-public python-openstacksdk | 1191 | (define-public python-openstacksdk |
