From bb257e5f68108fc4513f1977fa80e9b16738366c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 13 Jul 2023 21:12:22 +0300 Subject: gnu: Add rust-pyo3-ffi-0.19. * gnu/packages/crates-io.scm (rust-pyo3-ffi-0.19): New variable. (rust-pyo3-ffi-0.16): Inherit from rust-pyo3-ffi-0.19. --- gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5f9e44aad9..66f5d91dc5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -49309,29 +49309,47 @@ ecosystem.") `(#:cargo-inputs (("rust-once-cell" ,rust-once-cell-1)))))) -(define-public rust-pyo3-ffi-0.16 +(define-public rust-pyo3-ffi-0.19 (package (name "rust-pyo3-ffi") - (version "0.16.5") + (version "0.19.1") (source (origin (method url-fetch) (uri (crate-uri "pyo3-ffi" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 - "0avls4q393nmzhb124zg6kp5lj6xzy2f6qx564qa7b614xqs0xf2")))) + "193hg837vk0c9b4fxxx4bp2vjm4n4m0sx59ivba0lq78b63xwblj")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs + `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2) - ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.16)))) + ("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))) +(define-public rust-pyo3-ffi-0.16 + (package + (inherit rust-pyo3-ffi-0.19) + (name "rust-pyo3-ffi") + (version "0.16.5") + (source (origin + (method url-fetch) + (uri (crate-uri "pyo3-ffi" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0avls4q393nmzhb124zg6kp5lj6xzy2f6qx564qa7b614xqs0xf2")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-pyo3-build-config" ,rust-pyo3-build-config-0.16)))))) + (define-public rust-pyo3-ffi-0.18 (package (name "rust-pyo3-ffi") -- cgit 1.4.1