gnu: python-olm: Improve style.

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

Change-Id: I09f9798a30e18fe92c55fe8118147f7442ae8481
This commit is contained in:
Cayetano Santos 2025-11-02 18:35:40 +01:00
parent 8fdfe11674
commit 30ed6ed211
No known key found for this signature in database
GPG key ID: BF5CDF4DF6BF6682

View file

@ -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))