mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: Add python-respx.
* gnu/packages/python-check.scm (python-respx): New variable. Change-Id: Iddfdcc6dd2cc0f518e7046ac8df743c4b535d639
This commit is contained in:
parent
11ab410217
commit
f0aefd0b5c
1 changed files with 43 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
|||
;;; Copyright © 2018-2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2019-2025 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2019-2024 Maxim Cournoyer <maxim@guixotic.coop>
|
||||
;;; Copyright © 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||
;;; Copyright © 2019, 2021, 2025 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||
;;; Copyright © 2020, 2022 Julien Lepiller <julien@lepiller.eu>
|
||||
;;; Copyright © 2020 Matthew James Kraai <kraai@ftbfs.org>
|
||||
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
|
||||
|
|
@ -3746,6 +3746,48 @@ libraries.")
|
|||
simpler.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-respx
|
||||
(package
|
||||
(name "python-respx")
|
||||
(version "0.22.0")
|
||||
(source
|
||||
(origin
|
||||
;; There are no tests in the PyPI tarball.
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/lundberg/respx/")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0pl6vlyva837bnz3cy9mwmvvh8fq943rkrbq3mzj34bjf8swnw2g"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-pytest-config
|
||||
(lambda _
|
||||
;; Drop test coverage requirements.
|
||||
(substitute* "setup.cfg"
|
||||
(("--cov(-[^ ]*)?=[^ ]*")
|
||||
"\n")
|
||||
(("--cov-fail-under [^ ]*")
|
||||
"\n")))))))
|
||||
(propagated-inputs (list python-httpx))
|
||||
(native-inputs (list nss-certs-for-test
|
||||
python-starlette
|
||||
python-flask
|
||||
python-pytest
|
||||
python-pytest-asyncio
|
||||
python-setuptools
|
||||
python-wheel))
|
||||
(home-page "https://lundberg.github.io/respx/")
|
||||
(synopsis "Mocking for Python libraries HTTPX and HTTPCore")
|
||||
(description
|
||||
"This package provides a utility for mocking out the Python libraries HTTPX and
|
||||
HTTPCore.")
|
||||
(license license:bsd-3)))
|
||||
|
||||
(define-public python-robber
|
||||
(package
|
||||
(name "python-robber")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue