[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#41807] [PATCH 02/26] gnu: Add python-immutables.
From: |
Giacomo Leidi |
Subject: |
[bug#41807] [PATCH 02/26] gnu: Add python-immutables. |
Date: |
Thu, 11 Jun 2020 17:13:33 +0200 |
* gnu/packages/python-xyz.scm (python-immutables): New variable.
---
gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 11630d4818..106a6802bd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20098,3 +20098,29 @@ For the most part it's transliterated from C, the
major differences are:
outcome of a Python function call, so that it can be passed around.")
;; Choice of either license.
(license (list license:expat license:asl2.0))))
+
+(define-public python-immutables
+ (package
+ (name "python-immutables")
+ (version "0.14")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "immutables" version))
+ (sha256
+ (base32
+ "0y0aqw29g525frdnmv9paljzacpp4s21sadfbca5b137iciwr8d0"))))
+ (build-system python-build-system)
+ (home-page
+ "https://github.com/MagicStack/immutables")
+ (synopsis "High-performance immutable mapping type for Python")
+ (description "@code{python-immutables} provides an immutable mapping
+type for Python. The underlying datastructure is a Hash Array Mapped Trie
+(HAMT), and it's used in Clojure, Scala, Haskell, and other functional
+languages. This implementation is used in CPython 3.7 in the contextvars
module
+(see PEP 550 and PEP 567 for more details).
+
+Immutable mappings based on HAMT have O(log N) performance for both
@code{set()}
+and @code{get()} operations, which is essentially O(1) for relatively
+small mappings.")
+ (license license:asl2.0)))
--
2.26.2
- [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx., (continued)
- [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 21/26] gnu: Add python-dataclasses., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 04/26] gnu: Add python-curio., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 12/26] gnu: Add python-hyperframe., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 05/26] gnu: Add python-sniffio., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 09/26] gnu: Add python-aiofiles., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 14/26] gnu: Add python-hstspreload., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 16/26] gnu: Add python-flake8-pyi., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 17/26] gnu: Add python-typing-inspect., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 19/26] gnu: Add python-pyre-extensions., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 02/26] gnu: Add python-immutables.,
Giacomo Leidi <=
- [bug#41807] [PATCH 11/26] gnu: Add python-hpack., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 22/26] gnu: Add python-libcst., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 23/26] gnu: Add python-pywatchman., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 25/26] gnu: Add python-uvloop., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 24/26] gnu: Add python-httpx., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCH 26/26] gnu: Add python-sanic., Giacomo Leidi, 2020/06/11
- [bug#41807] [PATCHES] Add python-sanic and dependencies., paul, 2020/06/11
- [bug#41807] [PATCHES] Add python-sanic and dependencies., Lars-Dominik Braun, 2020/06/17