lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 6f52afa25873f0926f06f46d9a838a44b6192dea
Author: Lars-Dominik Braun <[email protected]>
AuthorDate: Thu Dec 30 09:57:00 2021 +0100
gnu: python-argon2-cffi: Do not override 'build.
Instead set required variables before that phase.
* gnu/packages/python-crypto.scm (python-argon2-cffi)[#:phases]: Rename
'build to 'use-system-cffi and remove setup.py invokation.
---
gnu/packages/python-crypto.scm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 2e16392c9d..33f0c06807 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1634,10 +1634,9 @@ I/O-free core, and integration modules for different
event loops.")
(arguments
'(#:phases
(modify-phases %standard-phases
- (replace 'build
+ (add-before 'build 'use-system-cffi
(lambda _
- (setenv "ARGON2_CFFI_USE_SYSTEM" "1")
- (invoke "python" "setup.py" "build")))
+ (setenv "ARGON2_CFFI_USE_SYSTEM" "1")))
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)