diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2025-07-09 17:09:58 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2025-07-09 17:09:58 +0300 |
commit | 171d8c0fe632fb3c67da52214e5d414b6bcb81b6 (patch) | |
tree | e675cd15d4b88a830ec9c9aeed8b56c1a29cdce2 /gnu/packages/web.scm | |
parent | 880549d0d05dd401d6b2ab2ebd7196f399405a53 (diff) |
gnu: stunnel: Support more systems.
* gnu/packages/web.scm (stunnel)[arguments]: Only run the tests when not
cross-compiling and when python-cryptography is a native-input.
[native-inputs]: Only add the test inputs on systems which are supported
by python-cryptography.
Change-Id: I6830b77dc600be8e00c1661b801c43e420b12183
Diffstat (limited to 'gnu/packages/web.scm')
-rw-r--r-- | gnu/packages/web.scm | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 87625acfc5..f13e5300bb 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -6862,6 +6862,8 @@ tools like SSH (Secure Shell) to reach the outside world.") (list #:configure-flags #~(list (string-append "--with-ssl=" #$(this-package-input "openssl"))) + #:tests? (and (not (%current-target-system)) + (this-package-native-input "python-cryptography")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-output-directories @@ -6879,11 +6881,13 @@ tools like SSH (Secure Shell) to reach the outside world.") (for-each delete-file (find-files doc "^INSTALL")))))))) (native-inputs ;; For tests. - (list iproute - netcat - procps - python - python-cryptography)) + (if (supported-package? python-cryptography) + (list iproute + netcat + procps + python + python-cryptography) + '())) (inputs (list openssl perl)) (home-page "https://www.stunnel.org") (synopsis "TLS proxy for clients or servers") |