diff --git a/devel/Makefile b/devel/Makefile index f1f8c9d9c1a3..273f8fe6c3fa 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4511,6 +4511,7 @@ SUBDIR += py-darts.util.lru SUBDIR += py-dateutil SUBDIR += py-dateutils + SUBDIR += py-datrie SUBDIR += py-dbus SUBDIR += py-ddt SUBDIR += py-debtcollector diff --git a/devel/py-datrie/Makefile b/devel/py-datrie/Makefile new file mode 100644 index 000000000000..48a424a14b6e --- /dev/null +++ b/devel/py-datrie/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PORTNAME= datrie +PORTVERSION= 0.7.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Super-fast, efficiently stored Trie for Python + +LICENSE= GPLv2 + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest + +.include diff --git a/devel/py-datrie/distinfo b/devel/py-datrie/distinfo new file mode 100644 index 000000000000..631374a432cd --- /dev/null +++ b/devel/py-datrie/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1543304504 +SHA256 (datrie-0.7.1.tar.gz) = 7a11371cc2dbbad71d6dfef57ced6e8b384bb377eeb847c63d58f8dc8e8b2023 +SIZE (datrie-0.7.1.tar.gz) = 193464 diff --git a/devel/py-datrie/files/patch-setup.py b/devel/py-datrie/files/patch-setup.py new file mode 100644 index 000000000000..41efa802b56a --- /dev/null +++ b/devel/py-datrie/files/patch-setup.py @@ -0,0 +1,9 @@ +--- setup.py.orig 2018-11-27 07:47:36 UTC ++++ setup.py +@@ -54,5 +54,5 @@ setup(name="datrie", + ], include_dirs=[LIBDATRIE_DIR]) + ], + +- setup_requires=["pytest-runner"], ++ setup_requires=[], + tests_require=["pytest", "hypothesis"]) diff --git a/devel/py-datrie/pkg-descr b/devel/py-datrie/pkg-descr new file mode 100644 index 000000000000..ff9963dad914 --- /dev/null +++ b/devel/py-datrie/pkg-descr @@ -0,0 +1,6 @@ +Python binding for libdatrie, a kind of digital search tree. + +Trie is an efficient indexing method. It is also a kind of deterministic finite +automaton (DFA). + +WWW: https://github.com/pytries/datrie