GNU bug report logs -
#60849
[PATCH core-updates 0/4] Enable cross-Compilation for python-pycryptodome
Previous Next
Full log
View this message in rfc822 format
* gnu/packages/python-crypto.scm (python-pycryptodome) [build-system]: Use
pyproject-build-system.
[arguments]: New field.
[inputs]: Re-indent.
---
gnu/packages/python-crypto.scm | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index c9071c4cf6..9023a5e054 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1012,9 +1012,23 @@ (define-public python-pycryptodome
"1f0qc0ns3ppybkr7wi66gsl5wfkcx1fdklmh3362nn84spddsdci"))
(modules '((guix build utils)))
(snippet pycryptodome-unbundle-tomcrypt-snippet)))
- (build-system python-build-system)
- (inputs
- (list libtomcrypt libtommath))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'extend-C_INCLUDE_PATH
+ (lambda* (#:key inputs target #:allow-other-keys)
+ (if target
+ (setenv "CROSS_C_INCLUDE_PATH"
+ (string-append (search-input-directory
+ inputs "include/libtomcrypt")
+ ":" (getenv "CROSS_C_INCLUDE_PATH")))
+ (setenv "C_INCLUDE_PATH"
+ (string-append (search-input-directory
+ inputs "include/libtomcrypt")
+ ":" (getenv "C_INCLUDE_PATH")))))))))
+ (inputs (list libtomcrypt libtommath))
(home-page "https://www.pycryptodome.org")
(synopsis "Low-level cryptographic Python library")
(description
--
2.38.1
This bug report was last modified 2 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.