guix_mirror_bot pushed a commit to branch master
in repository guix.
commit fa6f27131d3bada5b8e7dd9d1b05fefd1af90533
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Nov 5 12:31:07 2026 +0000
gnu: Add python-starlette-minimal.
* gnu/packages/python-web.scm (python-starlette-minimal): New variable.
---
gnu/packages/python-web.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 00c1a9db861..ee6da39c94c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -14842,6 +14842,20 @@ seamlessly integrates with @code{urllib3} and
@code{requests}.")
Interface) framework/toolkit for building async web services in Python.")
(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-starlette-minimal
+ (package/inherit python-starlette
+ (name "python-starlette-minimal")
+ (arguments
+ (substitute-keyword-arguments arguments
+ ((#:tests? _ #t) #f)))
+ (native-inputs
+ (list python-hatchling))
+ (propagated-inputs
+ (list python-anyio python-typing-extensions))))
+
(define-public python-starsessions
(package
(name "python-starsessions")