From b2b76d0d54fdf7ec86af0afa87870f7a5a4a3515 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 14 Jan 2024 16:42:52 +0200 Subject: [PATCH] gnu: Add rust-pyo3-ffi-0.20. * gnu/packages/crates-io.scm (rust-pyo3-ffi-0.20): New variable. (rust-pyo3-ffi-0.19): Inherit from rust-pyo3-ffi-0.20. Change-Id: Ia11da3916ddf808ef6cfced04c8d0fe580157f0b --- gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d1a19f866f..11ebfc222d 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -53549,8 +53549,31 @@ ecosystem.") `(#:cargo-inputs (("rust-once-cell" ,rust-once-cell-1)))))) +(define-public rust-pyo3-ffi-0.20 + (package + (name "rust-pyo3-ffi") + (version "0.20.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "pyo3-ffi" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1wbcv9cd0bandh3j5qfd5r66n045b8hs9wd4pi36nxhpgv0xxdyv")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2) + ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.20)))) + (native-inputs (list python)) + (home-page "https://github.com/pyo3/pyo3") + (synopsis "Python API bindings for the PyO3 ecosystem") + (description + "This crate provides Rust FFI declarations for Python 3.") + (license (list license:expat license:asl2.0)))) + (define-public rust-pyo3-ffi-0.19 (package + (inherit rust-pyo3-ffi-0.20) (name "rust-pyo3-ffi") (version "0.19.2") (source (origin @@ -53560,17 +53583,10 @@ ecosystem.") (sha256 (base32 "1nc4696k03ydyiy1f69l3ywknavjzxzag2mscrh2bgkywx1fwg75")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2) - ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.19)))) - (native-inputs (list python)) - (home-page "https://github.com/pyo3/pyo3") - (synopsis "Python API bindings for the PyO3 ecosystem") - (description - "This crate provides Rust FFI declarations for Python 3.") - (license license:asl2.0))) + ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.19)))))) (define-public rust-pyo3-ffi-0.18 (package