~ruther/guix-local

30ed6ed2116220fc14ee9513ded0fa989a164f97 — Cayetano Santos 3 months ago 8fdfe11
gnu: python-olm: Improve style.

* gnu/packages/crypto.scm (python-olm)[arguments]: Use G-Expressions.

Change-Id: I09f9798a30e18fe92c55fe8118147f7442ae8481
1 files changed, 14 insertions(+), 13 deletions(-)

M gnu/packages/crypto.scm
M gnu/packages/crypto.scm => gnu/packages/crypto.scm +14 -13
@@ 1378,19 1378,20 @@ API.")
    (name "python-olm")
    (build-system python-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'chdir
           (lambda _
             (chdir "python")))
         (add-before 'build 'set-preprocessor
           (lambda* (#:key inputs #:allow-other-keys)
             (setenv "CPP" "gcc -E")))
         (replace 'check
           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
             (when tests?
               (add-installed-pythonpath inputs outputs)
               (invoke "pytest")))))))
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'chdir
            (lambda _
              (chdir "python")))
          (add-before 'build 'set-preprocessor
            (lambda _
              (setenv "CPP" "gcc -E")))
          (replace 'check
            (lambda* (#:key tests? inputs outputs #:allow-other-keys)
              (when tests?
                (add-installed-pythonpath inputs outputs)
                (invoke "pytest")))))))
    (inputs (list olm))
    (propagated-inputs
     (list python-cffi python-future))