efraim pushed a commit to branch master
in repository guix.
commit 1b88114ff67cdbb3253c3e44e16d2f99acc7a588
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Jan 21 09:23:49 2025 +0200
gnu: python-dnspython: Only include supported inputs.
* gnu/packages/python-xyz.scm (python-dnspython)[propagated-inputs]:
Only include packages when they are supported on the architecture.
Change-Id: I19acb435b11070ee55c6b878019e1ee8532063b7
---
gnu/packages/python-xyz.scm | 27 +++++++++++++++++++--------
1 file changed, 19 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f5bcb41eba..0334dfbb44 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14,7 +14,7 @@
;;; Copyright © 2015, 2016, 2017, 2019, 2022 Leo Famulari <[email protected]>
;;; Copyright © 2015, 2017 Ben Woodcroft <[email protected]>
;;; Copyright © 2015, 2016 Erik Edrosa <[email protected]>
-;;; Copyright © 2015-2024 Efraim Flashner <[email protected]>
+;;; Copyright © 2015-2025 Efraim Flashner <[email protected]>
;;; Copyright © 2015, 2017, 2020 Kyle Meyer <[email protected]>
;;; Copyright © 2015, 2016 Chris Marusich <[email protected]>
;;; Copyright © 2016 Danny Milosavljevic <[email protected]>
@@ -23191,13 +23191,24 @@ until the object is actually required, and caches the
result of said call.")
(list python-hatchling
python-pytest))
(propagated-inputs
- (list python-cryptography
- python-aioquic
- python-h2
- python-httpcore
- python-httpx
- python-idna
- python-trio))
+ ;; According to pyproject.toml all these are technically optional.
+ (append
+ (let ((if-supported
+ (lambda (package)
+ (if (and (not (%current-target-system))
+ (member (%current-system)
+ (package-transitive-supported-systems
package)))
+ (list package)
+ '()))))
+ ;; DNSSEC
+ (if-supported python-cryptography)
+ ;; DNS over HTTPS
+ (if-supported python-h2)
+ (if-supported python-httpcore)
+ (if-supported python-httpx)
+ ;; DNS over Quic
+ (if-supported python-trio))
+ (list python-idna)))
(home-page "https://www.dnspython.org")
(synopsis "DNS toolkit for Python")
(description