diff --git a/net/Makefile b/net/Makefile index 65cc246499cbc..9233d1ecbd7d7 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1032,6 +1032,7 @@ SUBDIR += py-amqp SUBDIR += py-amqplib SUBDIR += py-avahi + SUBDIR += py-bonsai SUBDIR += py-cepa SUBDIR += py-cjdns SUBDIR += py-cloudflare-scrape diff --git a/net/py-bonsai/Makefile b/net/py-bonsai/Makefile new file mode 100644 index 0000000000000..431efab986315 --- /dev/null +++ b/net/py-bonsai/Makefile @@ -0,0 +1,30 @@ +PORTNAME= bonsai +DISTVERSION= 1.5.1 +CATEGORIES= net devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= meka@tilda.center +COMMENT= Module for handling LDAP operations in Python +WWW= https://github.com/noirello/bonsai + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +MY_DEPENDS= openldap26-client>=0:net/openldap26-client +BUILD_DEPENDS= ${MY_DEPENDS} +RUN_DEPENDS= ${MY_DEPENDS} + +USES= localbase python:3.7+ +USE_PYTHON= autoplist concurrent distutils pytest + +OPTIONS_DEFINE= GEVENT TORNADO TRIO + +GEVENT_DESC= Support for async IO using gevent +GEVENT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gevent>=0:devel/py-gevent@${PY_FLAVOR} +TORNADO_DESC= Support for async IO using tornado +TORNADO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>=0:www/py-tornado@${PY_FLAVOR} +TRIO_DESC= Support for async IO using trio +TRIO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}trio>=0:net/py-trio@${PY_FLAVOR} + +.include diff --git a/net/py-bonsai/distinfo b/net/py-bonsai/distinfo new file mode 100644 index 0000000000000..914634a907ac8 --- /dev/null +++ b/net/py-bonsai/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1685288184 +SHA256 (bonsai-1.5.1.tar.gz) = 101b0d166349bdcbf764a8139fd06b85b5524b4425e3f2bd6c2381f90369f735 +SIZE (bonsai-1.5.1.tar.gz) = 149639 diff --git a/net/py-bonsai/pkg-descr b/net/py-bonsai/pkg-descr new file mode 100644 index 0000000000000..cda2fc9bd6ac5 --- /dev/null +++ b/net/py-bonsai/pkg-descr @@ -0,0 +1,3 @@ +This module uses libldap2 on Unix platforms and WinLDAP on Microsoft Windows. +LDAP entries are mapped to a special Python case-insensitive dictionary, +tracking the changes of the dictionary to modify the entry on the server easily.