guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 23329eeb859fef1853e138a7cd2afa8b664a636c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Nov 5 12:31:10 2026 +0000
gnu: Add python-httpx2-minimal.
* gnu/packages/python-web.scm (python-httpx2-minimal): New variable.
---
gnu/packages/python-web.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b4cc604ce5c..b2479f422d0 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4654,6 +4654,26 @@ an integrated command line client, has support for both
HTTP/1.1 and HTTP/2,
and provides both sync and async APIs.")
(license license:bsd-3)))
+;; A bare minimal package, mainly to use in tests and reduce closure size.
+;; Tests are left out in the main package to slim down native-inputs and
+;; propagated-inputs.
+(define-public python-httpx2-minimal
+ (package/inherit python-httpx2
+ (name "python-httpx2-minimal")
+ (arguments
+ (substitute-keyword-arguments arguments
+ ((#:tests? _ #t) #f)))
+ (native-inputs
+ (list python-hatch-fancy-pypi-readme
+ python-hatch-vcs
+ python-hatchling))
+ (propagated-inputs
+ (list python-anyio
+ python-httpcore2
+ python-idna
+ python-truststore
+ python-typing-extensions)))) ;Python version < 3.13
+
(define-public python-igwn-auth-utils
(package
(name "python-igwn-auth-utils")