From patchwork Sun Feb 11 11:43:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 60055 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8F5C127BBEA; Sun, 11 Feb 2024 11:45:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 94F9327BBE2 for ; Sun, 11 Feb 2024 11:45:55 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZ8HM-0005xD-VG; Sun, 11 Feb 2024 06:45:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZ8HL-0005vA-GB for guix-patches@gnu.org; Sun, 11 Feb 2024 06:45:47 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZ8HL-0006Q9-7p for guix-patches@gnu.org; Sun, 11 Feb 2024 06:45:47 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZ8Hb-0008Ed-AN for guix-patches@gnu.org; Sun, 11 Feb 2024 06:46:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69048] [PATCH 27/32] gnu: Add rust-pyo3-0.20. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Feb 2024 11:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69048 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69048@debbugs.gnu.org Received: via spool by 69048-submit@debbugs.gnu.org id=B69048.170765191331392 (code B ref 69048); Sun, 11 Feb 2024 11:46:03 +0000 Received: (at 69048) by debbugs.gnu.org; 11 Feb 2024 11:45:13 +0000 Received: from localhost ([127.0.0.1]:41777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZ8Gm-0008A4-7M for submit@debbugs.gnu.org; Sun, 11 Feb 2024 06:45:12 -0500 Received: from mail04.noris.net ([62.128.1.224]:54449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZ8Gk-00089s-Rx for 69048@debbugs.gnu.org; Sun, 11 Feb 2024 06:45:11 -0500 Received: from mail01.noris.net ([62.128.1.221]) by mail04.noris.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rZ8GS-000FXC-CV for 69048@debbugs.gnu.org; Sun, 11 Feb 2024 12:44:52 +0100 Received: from p57b08159.dip0.t-ipconnect.de ([87.176.129.89] helo=hermia.goebel-consult.de) by mail01.noris.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rZ8GS-0008NS-97 for 69048@debbugs.gnu.org; Sun, 11 Feb 2024 12:44:52 +0100 Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 5F7AF5F571; Sun, 11 Feb 2024 12:44:00 +0100 (CET) From: Hartmut Goebel Date: Sun, 11 Feb 2024 12:43:36 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <60825c66932829f895e6426b36d6d290a081ffa5.1707650792.git.h.goebel@crazy-compilers.com> References: <60825c66932829f895e6426b36d6d290a081ffa5.1707650792.git.h.goebel@crazy-compilers.com> MIME-Version: 1.0 X-Noris-IP: 87.176.129.89 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-pyo3-0.20): New variable. (rust-pyo3-0.19): Inherit from rust-pyo3-0.20. --- gnu/packages/crates-io.scm | 65 ++++++++++++++++++++++++++++++++------ 1 file changed, 56 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index fe22a6603a..3701b3f310 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -59152,8 +59152,63 @@ (define-public rust-pyo3-macros-0.15 ("rust-syn" ,rust-syn-1)))) (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-either" ,rust-either-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 license:asl2.0))) + (define-public rust-pyo3-0.19 (package + (inherit rust-pyo3-0.20) (name "rust-pyo3") (version "0.19.2") (source (origin @@ -59196,15 +59251,7 @@ (define-public rust-pyo3-0.19 ("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 license:asl2.0))) + ("rust-widestring" ,rust-widestring-0.5)))))) (define-public rust-pyo3-0.18 (package