From patchwork Mon Dec 25 09:09:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 58063 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 E7BAC27BBEB; Mon, 25 Dec 2023 09:11:49 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED 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 9825927BBE2 for ; Mon, 25 Dec 2023 09:11:49 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHgzF-0003OP-3A; Mon, 25 Dec 2023 04:11:01 -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 1rHgzD-0003M4-0v for guix-patches@gnu.org; Mon, 25 Dec 2023 04:10:59 -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 1rHgzC-000196-Oh; Mon, 25 Dec 2023 04:10:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rHgzH-0003j6-Ve; Mon, 25 Dec 2023 04:11:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68023] [PATCH 08/13] gnu: Add python-rpds-py. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Mon, 25 Dec 2023 09:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68023 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68023@debbugs.gnu.org Cc: me@bonfacemunyoki.com, Mathieu Othacehe , me@tobias.gr, lars@6xq.net, efraim@flashner.co.il, leo@famulari.name, vagrant@debian.org, jgart@dismail.de, marius@gnu.org, Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart Received: via spool by 68023-submit@debbugs.gnu.org id=B68023.170349541814185 (code B ref 68023); Mon, 25 Dec 2023 09:11:03 +0000 Received: (at 68023) by debbugs.gnu.org; 25 Dec 2023 09:10:18 +0000 Received: from localhost ([127.0.0.1]:53954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHgyX-0003gb-VF for submit@debbugs.gnu.org; Mon, 25 Dec 2023 04:10:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHgyL-0003eJ-GN for 68023@debbugs.gnu.org; Mon, 25 Dec 2023 04:10:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rHgy9-0000jP-OF; Mon, 25 Dec 2023 04:09:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=2KlBRFjhEmo4PDdYrNxeTh/6cCYaE0q3KLY0RLrGsso=; b=eI7X1nIPuX5LtHpcxdpw ld9fYxJma6bx0zIlMtWqmIZmmPgv8uMmisybxzLIjFigsXK9yTF/Gpr4t9xXe/T1ljT0SJWEkoUgO kiHJBFrQDWGhYChNLyLXC2b9tsXBv1TwUHtCrDJ5asf843yK8GaWlVUofWVSly5YEp7rNkK84n8Ey gDR/r/ZVKsB/jGrvSeA3TpzTpIAYeVSU7MswbPMJwfgjoUBK+jSngezVwCbhpQcHWxof677vMrWqw xzgww3ZDBlXzdF3ukCewj8EwsceJW0tKLd6e6sS4/asbSETZbzkouYY6p2kLNjYEOWRvShMmSbGyN tSZJx/xy1ZHfSQ==; From: Mathieu Othacehe Date: Mon, 25 Dec 2023 10:09:24 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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/python-xyz.scm (python-rpds-py): New variable. Signed-off-by: Mathieu Othacehe Change-Id: I6f4d80cc7a9a3d591fcf894375ef14e079573c0d --- gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cab44be011..4d3041db2c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34054,6 +34054,46 @@ (define-public python-types-orjson etc. to check code that uses @code{orjson}.") (license license:asl2.0))) +(define-public python-rpds-py + (package + (name "python-rpds-py") + (version "0.10.6") + (source (origin + (method url-fetch) + (uri (pypi-uri "rpds_py" version)) + (sha256 + (base32 + "0l5slkvhq2vf64mapimmj6ginsv01mc4niyj90vvz3assq4agrac")))) + (build-system cargo-build-system) + (arguments + (list + #:imported-modules `(,@%cargo-build-system-modules + ,@%pyproject-build-system-modules) + #:modules '((guix build cargo-build-system) + ((guix build pyproject-build-system) #:prefix py:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'prepare-python-module 'build-python-module + (assoc-ref py:%standard-phases 'build)) + (add-after 'build-python-module 'install-python-module + (assoc-ref py:%standard-phases 'install))) + #:cargo-inputs + `(("rust-archery" ,rust-archery-1) + ("rust-pyo3" ,rust-pyo3-0.19) + ("rust-rpds" ,rust-rpds-1)) + #:install-source? #false)) + (inputs + (list maturin)) + (native-inputs + (list python-wrapper)) + (home-page "https://github.com/crate-py/rpds") + (synopsis "Bindings to Rust rpds for persistent data structures") + (description "This package provides Python bindings to the Rust rpds crate +for persistent data structures. It was written initially to support replacing +@code{python-pyrsistent}.") + (license license:expat))) + (define-public python-nanoid ;; There are no tests on PyPi. (let ((commit "061f9a598f310b0e2e91b9ed6ce725a22770da64")