mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: httpie: Update to 3.2.4.
* gnu/packages/python-web.scm (httpie): Update to 3.2.4. [source]: Switch to git-fetch. [arguments]: Enable tests, disable failing tests. Patch setup.cfg. [synopsis]: Update using PyPI synopsis. [propagated-inputs]: Remove python-colorama, python-importlib-metadata, python-pip, and python-setuptools. [native-inputs]: Add python-pytest-httpbin, python-pytest-mock, python-responses, and python-werkzeug. Change-Id: I8b7c8da377ed918f4abf06f51c399e6de54c51fa Reviewed-by: Nicolas Graves <ngraves@ngraves.fr> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
881038ccdc
commit
267ac92abd
1 changed files with 33 additions and 14 deletions
|
@ -2579,38 +2579,57 @@ other HTTP libraries.")
|
||||||
(define-public httpie
|
(define-public httpie
|
||||||
(package
|
(package
|
||||||
(name "httpie")
|
(name "httpie")
|
||||||
(version "3.2.2")
|
(version "3.2.4")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "httpie" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/httpie/cli")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "140w4mr0w7scpf4j5qm4h475vbwrgxzkdwyygwcmql1r1cgngywb"))))
|
(base32 "0ii11xfqkbawg1v8dlli4fqq5k3yc2v65z3j7k3p4gng998s94mr"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; The tests attempt to access external web servers, so we cannot run them.
|
(list
|
||||||
'(#:tests? #f))
|
#:phases
|
||||||
(native-inputs (list python-setuptools python-wheel))
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'remove-unnecessary-dependencies
|
||||||
|
;; Remove pip and setuptools dependencies so sanity-check.py passes.
|
||||||
|
(lambda _
|
||||||
|
(substitute* "setup.cfg"
|
||||||
|
(("(pip|setuptools)") "")))))
|
||||||
|
#:test-flags
|
||||||
|
;; test_plugins_cli.py communicates through subprocesses
|
||||||
|
;; mocking stdin, which does not work in the build container.
|
||||||
|
;; test_ssl.py cannot find the SSL certificates.
|
||||||
|
;; test_binary.py fails for an unknown reason.
|
||||||
|
#~(list "--ignore=tests/test_plugins_cli.py"
|
||||||
|
"--ignore=tests/test_ssl.py"
|
||||||
|
"--ignore=tests/test_binary.py")))
|
||||||
|
(native-inputs (list python-pytest
|
||||||
|
python-pytest-httpbin
|
||||||
|
python-pytest-mock
|
||||||
|
python-responses
|
||||||
|
python-setuptools
|
||||||
|
python-werkzeug
|
||||||
|
python-wheel))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-charset-normalizer
|
(list python-charset-normalizer
|
||||||
python-colorama
|
|
||||||
python-defusedxml
|
python-defusedxml
|
||||||
python-importlib-metadata
|
|
||||||
python-multidict
|
python-multidict
|
||||||
python-pip
|
|
||||||
python-pygments
|
python-pygments
|
||||||
python-requests
|
python-requests
|
||||||
python-requests-toolbelt
|
python-requests-toolbelt
|
||||||
python-rich
|
python-rich))
|
||||||
python-setuptools))
|
|
||||||
(home-page "https://httpie.io")
|
(home-page "https://httpie.io")
|
||||||
(synopsis "cURL-like tool for humans")
|
(synopsis "Modern, user-friendly command-line HTTP client for the API era")
|
||||||
(description
|
(description
|
||||||
"A command line HTTP client with an intuitive UI, JSON support,
|
"A command line HTTP client with an intuitive UI, JSON support,
|
||||||
syntax highlighting, wget-like downloads, plugins, and more. It consists of
|
syntax highlighting, wget-like downloads, plugins, and more. It consists of
|
||||||
a single http command designed for painless debugging and interaction with
|
a single http command designed for painless debugging and interaction with
|
||||||
HTTP servers, RESTful APIs, and web services.")
|
HTTP servers, RESTful APIs, and web services.")
|
||||||
;; This was fixed in 1.0.3.
|
;; CVE-2019-10751 was fixed in 1.0.3.
|
||||||
(properties `((lint-hidden-cve "CVE-2019-10751")))
|
(properties `((lint-hidden-cve "CVE-2019-10751")))
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue