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