guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit c3eabf7782555679e6aeef43d3263ef59f22ca5e
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 e5c237308c2..58b992ded68 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -14788,6 +14788,20 @@ seamlessly integrates with @code{urllib3} and
@code{requests}.")
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")