aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-04-07 04:58:04 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-04-07 09:58:09 +0000
commit6e895a45b8f8064c02d6e13551bfaae32a41b364 (patch)
tree3b0ff5778bab067977ec5830ccb5c1b678d198c7
parentaaadc00dae40b433c237608453e7b44a23664463 (diff)
devel/py-pybase64: New port: Fast Base64 encoding/decoding using libbase64
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-pybase64/Makefile26
-rw-r--r--devel/py-pybase64/distinfo3
-rw-r--r--devel/py-pybase64/pkg-descr3
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 42546634d6c6..029421b21cab 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5654,6 +5654,7 @@
SUBDIR += py-pyaml-env
SUBDIR += py-pyasn1
SUBDIR += py-pyasn1-modules
+ SUBDIR += py-pybase64
SUBDIR += py-pybind11
SUBDIR += py-pybix
SUBDIR += py-pybreaker
diff --git a/devel/py-pybase64/Makefile b/devel/py-pybase64/Makefile
new file mode 100644
index 000000000000..a09c9b9d5876
--- /dev/null
+++ b/devel/py-pybase64/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= pybase64
+DISTVERSION= 1.4.3
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Fast Base64 encoding/decoding using libbase64
+WWW= https://github.com/mayeut/pybase64
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}cython>=3.0:lang/cython@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8.0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+LIB_DEPENDS= libbase64.so:devel/base64
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC= ${WRKSRC}/tests
+
+.include <bsd.port.mk>
diff --git a/devel/py-pybase64/distinfo b/devel/py-pybase64/distinfo
new file mode 100644
index 000000000000..8a2638c48554
--- /dev/null
+++ b/devel/py-pybase64/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1775500352
+SHA256 (pybase64-1.4.3.tar.gz) = c2ed274c9e0ba9c8f9c4083cfe265e66dd679126cd9c2027965d807352f3f053
+SIZE (pybase64-1.4.3.tar.gz) = 137272
diff --git a/devel/py-pybase64/pkg-descr b/devel/py-pybase64/pkg-descr
new file mode 100644
index 000000000000..1c7fe12a2de8
--- /dev/null
+++ b/devel/py-pybase64/pkg-descr
@@ -0,0 +1,3 @@
+pybase64 is a fast Base64 encoding/decoding library for Python. It provides
+a drop-in replacement for Python's base64 module using SIMD-optimized
+implementations for significantly better performance.