~ruther/guix-local

fb667a7a8a69c17f5beafe458951defd369125fa — Sharlatan Hellseher 1 year, 11 months ago 68455dd
gnu: magic-wormhole: Simplify package.

* gnu/packages/magic-wormhole.scm: Use G-expressions.
[build-system]: Swap to pyproject-bulid-system.
[arguments]: <#:phases>: Remove trailing #t from lambda.
[native-inputs]: Add python-pytest. Remove python-noiseprototocl.
[propagated-inputs]: Add python-noiseprototocl, listed as an optional
install dependence.

Change-Id: Ie00a23ed3d31ca46d200fa6dfc5404f7803aae14
1 files changed, 14 insertions(+), 15 deletions(-)

M gnu/packages/magic-wormhole.scm
M gnu/packages/magic-wormhole.scm => gnu/packages/magic-wormhole.scm +14 -15
@@ 20,7 20,9 @@
(define-module (gnu packages magic-wormhole)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module (guix licenses)
  #:use-module (guix build-system pyproject)
  #:use-module (guix build-system python)
  #:use-module (gnu packages check)
  #:use-module (gnu packages python-check)


@@ 115,24 117,20 @@ together, allowing them to pretend they have a direct connection.")
        (sha256
         (base32
          "05hm5pnrxli69a28h3pbgx6s6pwy8279l506kha7y3i7hs1dcfxc"))))
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         ;; XXX I can't figure out how to build the docs properly.
         ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34515#101
         (add-after 'install 'install-docs
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
                    (man (string-append out "/share/man/man1")))
               (install-file "docs/wormhole.1" man))
             #t)))))
     (list
      #:phases
      #~(modify-phases %standard-phases
          ;; XXX I can't figure out how to build the docs properly.
          ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34515#101
          (add-after 'install 'install-docs
            (lambda _
              (install-file "docs/wormhole.1"
                            (string-append #$output "/share/man/man1")))))))
    (native-inputs
     (list python-mock
           python-noiseprotocol
           ;; XXX These are required for the test suite but end up being referenced
           ;; by the built package.
           ;; https://bugs.gnu.org/25235
           python-pytest
           magic-wormhole-mailbox-server
           magic-wormhole-transit-relay))
    (propagated-inputs


@@ 140,6 138,7 @@ together, allowing them to pretend they have a direct connection.")
           python-click
           python-hkdf
           python-humanize
           python-noiseprotocol
           python-pynacl
           python-spake2
           python-tqdm