gnu: python-blake3: Remove #:cargo-inputs.

* gnu/packages/python-crypto.scm (python-blake3)[inputs]: Use ‘cargo-inputs’.
[arguments]: Remove #:cargo-inputs.
<#:install-source?>: Disable.
* gnu/packages/rust-crates.scm (lookup-cargo-inputs)[python-blake3]: New
entry.

Change-Id: I78a08b7906482db982e7212448c90be112725a56
This commit is contained in:
Hilton Chain 2025-04-20 15:11:08 +08:00
parent ad938cca88
commit 98ec662435
No known key found for this signature in database
GPG key ID: ACC66D09CA528292
2 changed files with 82 additions and 8 deletions

View file

@ -342,6 +342,7 @@ production use. Include this module and use its backends at your own risk.")
(build-system cargo-build-system)
(arguments
(list
#:install-source? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'build-python-module
@ -389,14 +390,8 @@ exclude =
"/site-packages")))
(mkdir-p site)
(copy-file "target/release/libblake3.so"
(string-append site "/blake3.so"))))))
#:cargo-inputs
`(("rust-blake3" ,rust-blake3-1)
("rust-hex" ,rust-hex-0.4)
("rust-parking-lot" ,rust-parking-lot-0.11)
("rust-pyo3" ,rust-pyo3-0.15)
("rust-rayon" ,rust-rayon-1))))
(inputs (list rust-blake3-1))
(string-append site "/blake3.so"))))))))
(inputs (cargo-inputs 'python-blake3))
(native-inputs
(list python-wrapper
python-pypa-build