me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-pyo3-0.20.

* gnu/packages/crates-io.scm (rust-pyo3-0.20): New variable.
(rust-pyo3-0.19): Inherit from rust-pyo3-0.20.

Change-Id: I7a466d23bc641df287a79fcd8f8834233e231412
master
Efraim Flashner 2024-01-14 16:40:48 +02:00
parent 7d5b963f96
commit 6f564d43c5
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 54 additions and 10 deletions

View File

@ -53851,8 +53851,61 @@ extension to python.")
("rust-syn" ,rust-syn-1)))) ("rust-syn" ,rust-syn-1))))
(native-inputs (list python)))) (native-inputs (list python))))
(define-public rust-pyo3-0.20
(package
(name "rust-pyo3")
(version "0.20.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "pyo3" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1q3g7ppg2qskigbgqg3w9280klkil5is9hhyps1ykl2hb1xdr2cs"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
("rust-cfg-if" ,rust-cfg-if-1)
("rust-chrono" ,rust-chrono-0.4)
("rust-either" ,rust-either-1)
("rust-eyre" ,rust-eyre-0.6)
("rust-hashbrown" ,rust-hashbrown-0.14)
("rust-indexmap" ,rust-indexmap-2)
("rust-indoc" ,rust-indoc-2)
("rust-inventory" ,rust-inventory-0.3)
("rust-libc" ,rust-libc-0.2)
("rust-memoffset" ,rust-memoffset-0.9)
("rust-num-bigint" ,rust-num-bigint-0.4)
("rust-num-complex" ,rust-num-complex-0.4)
("rust-parking-lot" ,rust-parking-lot-0.12)
("rust-pyo3-build-config" ,rust-pyo3-build-config-0.20)
("rust-pyo3-ffi" ,rust-pyo3-ffi-0.20)
("rust-pyo3-macros" ,rust-pyo3-macros-0.20)
("rust-rust-decimal" ,rust-rust-decimal-1)
("rust-serde" ,rust-serde-1)
("rust-smallvec" ,rust-smallvec-1)
("rust-unindent" ,rust-unindent-0.2))
#:cargo-development-inputs (("rust-assert-approx-eq" ,rust-assert-approx-eq-1)
("rust-chrono" ,rust-chrono-0.4)
("rust-proptest" ,rust-proptest-1)
("rust-rayon" ,rust-rayon-1)
("rust-send-wrapper" ,rust-send-wrapper-0.6)
("rust-serde" ,rust-serde-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-trybuild" ,rust-trybuild-1)
("rust-widestring" ,rust-widestring-0.5))))
(inputs (list python))
(home-page "https://github.com/pyo3/pyo3")
(synopsis "Rust bindings for the Python interpreter")
(description
"This package provides Rust bindings for Python, including tools for
creating native Python extension modules. Running and interacting with
Python code from a Rust binary is also supported.")
(license (list license:expat license:asl2.0))))
(define-public rust-pyo3-0.19 (define-public rust-pyo3-0.19
(package (package
(inherit rust-pyo3-0.20)
(name "rust-pyo3") (name "rust-pyo3")
(version "0.19.2") (version "0.19.2")
(source (origin (source (origin
@ -53862,7 +53915,6 @@ extension to python.")
(sha256 (sha256
(base32 (base32
"0f1aqx947mzsrk05zdm9w2702lj5k9s97y9w9lxwkp2avk7sd0g6")))) "0f1aqx947mzsrk05zdm9w2702lj5k9s97y9w9lxwkp2avk7sd0g6"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:cargo-test-flags `(#:cargo-test-flags
'("--release" "--" '("--release" "--"
@ -53898,15 +53950,7 @@ extension to python.")
("rust-serde" ,rust-serde-1) ("rust-serde" ,rust-serde-1)
("rust-serde-json" ,rust-serde-json-1) ("rust-serde-json" ,rust-serde-json-1)
("rust-trybuild" ,rust-trybuild-1) ("rust-trybuild" ,rust-trybuild-1)
("rust-widestring" ,rust-widestring-0.5)))) ("rust-widestring" ,rust-widestring-0.5))))))
(inputs (list python))
(home-page "https://github.com/pyo3/pyo3")
(synopsis "Rust bindings for the Python interpreter")
(description
"This package provides Rust bindings for Python, including tools for
creating native Python extension modules. Running and interacting with
Python code from a Rust binary is also supported.")
(license license:asl2.0)))
(define-public rust-pyo3-0.18 (define-public rust-pyo3-0.18
(package (package