mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
ad416124e2
commit
a69386e4da
1 changed files with 23 additions and 13 deletions
|
@ -1153,29 +1153,39 @@ Gerrit for review, or fetching existing ones.")
|
||||||
(version "1.4.0")
|
(version "1.4.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "requestsexceptions" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/openstack/requestsexceptions")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0r9hp9yzgj8r81q5gc6r8sgxldqc09xi6ax0b7a6dw0qfv3wp5dh"))))
|
(base32 "12c4bi2vm337sgbbl08i01v794glnk1fzgxdc11545dqdl57rslz"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
;; XXX: There are some tests in tox.ini, but it leads nowhere.
|
||||||
|
#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'relax-requirements
|
(add-after 'unpack 'relax-requirements
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "test-requirements.txt"
|
(substitute* "test-requirements.txt"
|
||||||
(("hacking.*")
|
(("hacking.*")
|
||||||
"")))))))
|
""))))
|
||||||
(native-inputs (list python-pbr python-setuptools python-wheel))
|
(add-after 'unpack 'set-version
|
||||||
(home-page "https://www.openstack.org/")
|
(lambda _
|
||||||
(synopsis "Import exceptions from potentially bundled packages in requests")
|
(setenv "PBR_VERSION" #$version))))))
|
||||||
(description "The Python requests library bundles the urllib3 library,
|
(native-inputs (list python-os-testr python-pbr python-setuptools))
|
||||||
however, some software distributions modify requests to remove the bundled
|
(home-page "https://github.com/openstack/requestsexceptions")
|
||||||
library. This makes some operations difficult, such as suppressing the
|
(synopsis
|
||||||
“insecure platform warning” messages that urllib emits. This package is a
|
"Import exceptions from potentially bundled packages in requests")
|
||||||
simple library to find the correct path to exceptions in the requests library
|
(description
|
||||||
regardless of whether they are bundled or not.")
|
"The Python requests library bundles the urllib3 library, however, some
|
||||||
|
software distributions modify requests to remove the bundled library. This
|
||||||
|
makes some operations difficult, such as suppressing the “insecure platform
|
||||||
|
warning” messages that urllib emits. This package is a simple library to find
|
||||||
|
the correct path to exceptions in the requests library regardless of whether
|
||||||
|
they are bundled or not.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public python-openstacksdk
|
(define-public python-openstacksdk
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue