From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 60849@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>, Lars-Dominik Braun <lars@6xq.net>,
Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: [bug#60849] [PATCH core-updates 3/4] gnu: python-pycryptodome: Fix build and enable cross-compilation.
Date: Mon, 16 Jan 2023 00:13:38 -0500 [thread overview]
Message-ID: <20230116051339.27113-4-maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <20230116051339.27113-2-maxim.cournoyer@gmail.com>
* 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
next prev parent reply other threads:[~2023-01-16 6:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-16 5:09 [bug#60849] [PATCH core-updates 0/4] Enable cross-Compilation for python-pycryptodome Maxim Cournoyer
2023-01-16 5:13 ` [bug#60849] [PATCH core-updates 1/4] gnu: libtommath: Update to 1.2.0-0.03de03d Maxim Cournoyer
2023-01-16 5:13 ` [bug#60849] [PATCH core-updates 2/4] gnu: libtomcrypt: Update to 1.18.2-0.29986d0 Maxim Cournoyer
2023-01-16 5:13 ` Maxim Cournoyer [this message]
2023-01-16 5:13 ` [bug#60849] [PATCH core-updates 4/4] gnu: python-coverage: Switch to pyproject-build-system Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230116051339.27113-4-maxim.cournoyer@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=60849@debbugs.gnu.org \
--cc=jgart@dismail.de \
--cc=lars@6xq.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.