guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 6aaed556ad47a508088f91be261649fbab8dde2f
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 8efa8a3d949..d1a4b5242a1 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -940,6 +940,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")

Reply via email to