~ruther/guix-local

171d8c0fe632fb3c67da52214e5d414b6bcb81b6 — Efraim Flashner a year ago 880549d
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
1 files changed, 9 insertions(+), 5 deletions(-)

M gnu/packages/web.scm
M gnu/packages/web.scm => gnu/packages/web.scm +9 -5
@@ 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")