diff --git a/devel/Makefile b/devel/Makefile index b5e97dedd3fb..73d42db55647 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4980,6 +4980,7 @@ SUBDIR += py-tinyarray SUBDIR += py-tinyrpc SUBDIR += py-tipper + SUBDIR += py-toolz SUBDIR += py-tooz SUBDIR += py-toposort SUBDIR += py-total-ordering diff --git a/devel/py-toolz/Makefile b/devel/py-toolz/Makefile new file mode 100644 index 000000000000..6edec302deb6 --- /dev/null +++ b/devel/py-toolz/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +PORTNAME= toolz +DISTVERSION= 0.9.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Functional standard library for Python + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include diff --git a/devel/py-toolz/distinfo b/devel/py-toolz/distinfo new file mode 100644 index 000000000000..68a06ad1dfdc --- /dev/null +++ b/devel/py-toolz/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1522357087 +SHA256 (toolz-0.9.0.tar.gz) = 929f0a7ea7f61c178bd951bdae93920515d3fbdbafc8e6caf82d752b9b3b31c9 +SIZE (toolz-0.9.0.tar.gz) = 45544 diff --git a/devel/py-toolz/pkg-descr b/devel/py-toolz/pkg-descr new file mode 100644 index 000000000000..db10cb95b838 --- /dev/null +++ b/devel/py-toolz/pkg-descr @@ -0,0 +1,12 @@ +toolz is implemented in three parts: +* itertoolz, for operations on iterables. + Examples: groupby, unique, interpose, +* functoolz, for higher-order functions. + Examples: memoize, curry, compose +* dicttoolz, for operations on dictionaries. + Examples: assoc, update-in, merge. + +These functions come from the legacy of functional languages for list +processing. They interoperate well to accomplish common complex tasks. + +WWW: http://github.com/pytoolz/toolz/