diff options
| author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2025-10-02 21:39:49 +0200 |
|---|---|---|
| committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2025-10-07 15:25:37 +0200 |
| commit | f0aefd0b5c1032927b4969a18047dd363cf8c831 (patch) | |
| tree | d9af7a4961956b3b7d1b45f1b202833785f3dc0d /gnu/packages/python-check.scm | |
| parent | 11ab410217fa094f040128917e90ea89ee586ffc (diff) | |
gnu: Add python-respx.
* gnu/packages/python-check.scm (python-respx): New variable.
Change-Id: Iddfdcc6dd2cc0f518e7046ac8df743c4b535d639
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 4a4815fd91a..913e1ab9e3c 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | ;;; Copyright © 2018-2020 Tobias Geerinckx-Rice <me@tobias.gr> | 9 | ;;; Copyright © 2018-2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 10 | ;;; Copyright © 2019-2025 Ricardo Wurmus <rekado@elephly.net> | 10 | ;;; Copyright © 2019-2025 Ricardo Wurmus <rekado@elephly.net> |
| 11 | ;;; Copyright © 2019-2024 Maxim Cournoyer <maxim@guixotic.coop> | 11 | ;;; Copyright © 2019-2024 Maxim Cournoyer <maxim@guixotic.coop> |
| 12 | ;;; Copyright © 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com> | 12 | ;;; Copyright © 2019, 2021, 2025 Hartmut Goebel <h.goebel@crazy-compilers.com> |
| 13 | ;;; Copyright © 2020, 2022 Julien Lepiller <julien@lepiller.eu> | 13 | ;;; Copyright © 2020, 2022 Julien Lepiller <julien@lepiller.eu> |
| 14 | ;;; Copyright © 2020 Matthew James Kraai <kraai@ftbfs.org> | 14 | ;;; Copyright © 2020 Matthew James Kraai <kraai@ftbfs.org> |
| 15 | ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com> | 15 | ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com> |
| @@ -3746,6 +3746,48 @@ libraries.") | |||
| 3746 | simpler.") | 3746 | simpler.") |
| 3747 | (license license:expat))) | 3747 | (license license:expat))) |
| 3748 | 3748 | ||
| 3749 | (define-public python-respx | ||
| 3750 | (package | ||
| 3751 | (name "python-respx") | ||
| 3752 | (version "0.22.0") | ||
| 3753 | (source | ||
| 3754 | (origin | ||
| 3755 | ;; There are no tests in the PyPI tarball. | ||
| 3756 | (method git-fetch) | ||
| 3757 | (uri (git-reference | ||
| 3758 | (url "https://github.com/lundberg/respx/") | ||
| 3759 | (commit version))) | ||
| 3760 | (file-name (git-file-name name version)) | ||
| 3761 | (sha256 | ||
| 3762 | (base32 "0pl6vlyva837bnz3cy9mwmvvh8fq943rkrbq3mzj34bjf8swnw2g")))) | ||
| 3763 | (build-system pyproject-build-system) | ||
| 3764 | (arguments | ||
| 3765 | (list | ||
| 3766 | #:phases | ||
| 3767 | #~(modify-phases %standard-phases | ||
| 3768 | (add-after 'unpack 'fix-pytest-config | ||
| 3769 | (lambda _ | ||
| 3770 | ;; Drop test coverage requirements. | ||
| 3771 | (substitute* "setup.cfg" | ||
| 3772 | (("--cov(-[^ ]*)?=[^ ]*") | ||
| 3773 | "\n") | ||
| 3774 | (("--cov-fail-under [^ ]*") | ||
| 3775 | "\n"))))))) | ||
| 3776 | (propagated-inputs (list python-httpx)) | ||
| 3777 | (native-inputs (list nss-certs-for-test | ||
| 3778 | python-starlette | ||
| 3779 | python-flask | ||
| 3780 | python-pytest | ||
| 3781 | python-pytest-asyncio | ||
| 3782 | python-setuptools | ||
| 3783 | python-wheel)) | ||
| 3784 | (home-page "https://lundberg.github.io/respx/") | ||
| 3785 | (synopsis "Mocking for Python libraries HTTPX and HTTPCore") | ||
| 3786 | (description | ||
| 3787 | "This package provides a utility for mocking out the Python libraries HTTPX and | ||
| 3788 | HTTPCore.") | ||
| 3789 | (license license:bsd-3))) | ||
| 3790 | |||
| 3749 | (define-public python-robber | 3791 | (define-public python-robber |
| 3750 | (package | 3792 | (package |
| 3751 | (name "python-robber") | 3793 | (name "python-robber") |
