guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit ba37149aad73280323ce9086617ac7f9b35e7061
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Nov 5 12:31:10 2026 +0000
gnu: Add python-aiohttp-minimal.
* gnu/packages/python-web.scm (python-aiohttp-minimal): New variable.
---
gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b2479f422d0..759777d580b 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -925,6 +925,31 @@ to the absence of the @samp{motor} and @samp{aioboto3}
package dependencies.")
support for aiohttp asyncio-powered asynchronous HTTP server.")
(license license:asl2.0)))
+;; 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-aiohttp-minimal
+ (package/inherit python-aiohttp
+ (name "python-aiohttp-minimal")
+ (arguments
+ (substitute-keyword-arguments arguments
+ ((#:tests? _ #t) #f)))
+ (native-inputs
+ (list python-cython
+ python-pkgconfig
+ python-setuptools
+ python-zlib-ng))
+ (inputs
+ (list llhttp))
+ (propagated-inputs
+ (list python-aiohappyeyeballs
+ python-aiosignal
+ python-attrs
+ python-frozenlist
+ python-multidict
+ python-propcache
+ python-yarl))))
+
(define-public python-aiohttp-oauthlib
(package
(name "python-aiohttp-oauthlib")