svn commit: r523645 - in head/devel: . py-immutables

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Mon Jan 20 20:08:34 UTC 2020


Author: sunpoet
Date: Mon Jan 20 20:08:33 2020
New Revision: 523645
URL: https://svnweb.freebsd.org/changeset/ports/523645

Log:
  Add py-immutables 0.11
  
  An immutable mapping type for Python.
  
  The underlying datastructure is a Hash Array Mapped Trie (HAMT) 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 set() and
  get() operations, which is essentially O(1) for relatively small mappings.
  
  WWW: https://github.com/MagicStack/immutables

Added:
  head/devel/py-immutables/
  head/devel/py-immutables/Makefile   (contents, props changed)
  head/devel/py-immutables/distinfo   (contents, props changed)
  head/devel/py-immutables/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Jan 20 20:08:27 2020	(r523644)
+++ head/devel/Makefile	Mon Jan 20 20:08:33 2020	(r523645)
@@ -4518,6 +4518,7 @@
     SUBDIR += py-identify
     SUBDIR += py-ijson
     SUBDIR += py-imgkit
+    SUBDIR += py-immutables
     SUBDIR += py-importlab
     SUBDIR += py-importlib-metadata
     SUBDIR += py-importlib-resources

Added: head/devel/py-immutables/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-immutables/Makefile	Mon Jan 20 20:08:33 2020	(r523645)
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	immutables
+PORTVERSION=	0.11
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet at FreeBSD.org
+COMMENT=	Immutable collections
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/immutables/_map.so
+
+.include <bsd.port.mk>

Added: head/devel/py-immutables/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-immutables/distinfo	Mon Jan 20 20:08:33 2020	(r523645)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1579531330
+SHA256 (immutables-0.11.tar.gz) = d6850578a0dc6530ac19113cfe4ddc13903df635212d498f176fe601a8a5a4a3
+SIZE (immutables-0.11.tar.gz) = 38557

Added: head/devel/py-immutables/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-immutables/pkg-descr	Mon Jan 20 20:08:33 2020	(r523645)
@@ -0,0 +1,11 @@
+An immutable mapping type for Python.
+
+The underlying datastructure is a Hash Array Mapped Trie (HAMT) 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 set() and
+get() operations, which is essentially O(1) for relatively small mappings.
+
+WWW: https://github.com/MagicStack/immutables


More information about the svn-ports-all mailing list