guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 0e85ebaf7b1ee286f287f49e686d8ac5a0bd6028
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Jul 8 21:34:55 2026 +0100

    gnu: Add python-dnspython-minimal.
    
    * gnu/packages/python-xyz.scm (python-dnspython-minimal): New variable.
---
 gnu/packages/python-xyz.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a5ec65dd77..94e059feb2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23360,6 +23360,7 @@ until the object is actually required, and caches the 
result of said call.")
     (license license:bsd-2)))
 
 (define-public python-dnspython
+  ;; TODO: Move to (gnu packages python-web).
   (package
     (name "python-dnspython")
     (version "2.8.0")
@@ -23416,6 +23417,19 @@ types.  It can be used for queries, zone transfers, 
and dynamic updates.
 It supports TSIG authenticated messages and EDNS0.")
     (license license:expat)))
 
+;; 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-dnspython-minimal
+  (package/inherit python-dnspython
+    (name "python-dnspython-minimal")
+    (arguments
+     (substitute-keyword-arguments arguments
+       ((#:tests? _ #t) #f)))
+    (native-inputs
+     (list python-hatchling))
+    (propagated-inputs '())))
+
 (define-public python-py3dns
   (package
     (name "python-py3dns")

Reply via email to