Skip to content

Commit

Permalink
net/py-bonsai: Module for handling LDAP operations in Python
Browse files Browse the repository at this point in the history
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.

WWW: https://github.com/noirello/bonsai

PR:		271696
  • Loading branch information
mekanix authored and clausecker committed Jun 8, 2023
1 parent 8ffec20 commit 5ae00f3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/Makefile
Expand Up @@ -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
Expand Down
30 changes: 30 additions & 0 deletions 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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions 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.

0 comments on commit 5ae00f3

Please sign in to comment.