mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: python-olm: Improve style.
* gnu/packages/crypto.scm (python-olm)[arguments]: Use G-Expressions. Change-Id: I09f9798a30e18fe92c55fe8118147f7442ae8481
This commit is contained in:
parent
8fdfe11674
commit
30ed6ed211
1 changed files with 14 additions and 13 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue