[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/11: gnu: Add python-rpds-py.
From: |
guix-commits |
Subject: |
06/11: gnu: Add python-rpds-py. |
Date: |
Thu, 28 Dec 2023 04:36:48 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit d460b12d76eb2bc6674750bc0a410de37aee6646
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sun Dec 24 21:22:16 2023 +0100
gnu: Add python-rpds-py.
* gnu/packages/python-xyz.scm (python-rpds-py): New variable.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
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 @@ package. It can be used by type-checking tools like
mypy, PyCharm, pytype
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")
- branch master updated (931d893c55 -> bc509aba83), guix-commits, 2023/12/28
- 03/11: gnu: Add rust-compiletest-rs-0.10., guix-commits, 2023/12/28
- 05/11: gnu: Add rust-rpds-1., guix-commits, 2023/12/28
- 07/11: gnu: cdparanoia: Fix cross-compiling., guix-commits, 2023/12/28
- 11/11: gnu: Add python-ast-decompiler., guix-commits, 2023/12/28
- 09/11: gnu: Add python-pytest-cookies., guix-commits, 2023/12/28
- 01/11: gnu: Add rust-unsize-1., guix-commits, 2023/12/28
- 02/11: gnu: Add rust-triomphe-0.1., guix-commits, 2023/12/28
- 04/11: gnu: Add rust-archery-1., guix-commits, 2023/12/28
- 06/11: gnu: Add python-rpds-py.,
guix-commits <=
- 08/11: gnu: sssd: Update to 2.9.3., guix-commits, 2023/12/28
- 10/11: gnu: python-flake8-isort: Update to 6.1.0., guix-commits, 2023/12/28