aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-python-iso639
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-python-iso639')
-rw-r--r--textproc/py-python-iso639/Makefile26
-rw-r--r--textproc/py-python-iso639/distinfo3
-rw-r--r--textproc/py-python-iso639/files/patch-pyproject.toml9
-rw-r--r--textproc/py-python-iso639/pkg-descr9
4 files changed, 47 insertions, 0 deletions
diff --git a/textproc/py-python-iso639/Makefile b/textproc/py-python-iso639/Makefile
new file mode 100644
index 000000000000..6daefe6442a4
--- /dev/null
+++ b/textproc/py-python-iso639/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= python-iso639
+DISTVERSION= 2025.2.18
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= python_iso639-${DISTVERSION}
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= ISO 639 language codes, names, and other associated information
+WWW= https://pypi.org/project/python-iso639/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
+
+.include <bsd.port.mk>
diff --git a/textproc/py-python-iso639/distinfo b/textproc/py-python-iso639/distinfo
new file mode 100644
index 000000000000..6d2120498a6c
--- /dev/null
+++ b/textproc/py-python-iso639/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759993753
+SHA256 (python_iso639-2025.2.18.tar.gz) = 34e31e8e76eb3fc839629e257b12bcfd957c6edcbd486bbf66ba5185d1f566e8
+SIZE (python_iso639-2025.2.18.tar.gz) = 173552
diff --git a/textproc/py-python-iso639/files/patch-pyproject.toml b/textproc/py-python-iso639/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e543e9b01574
--- /dev/null
+++ b/textproc/py-python-iso639/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
+--- pyproject.toml.orig 2025-10-09 07:19:11 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools >= 65.3.0", "wheel"]
++requires = ["setuptools >= 63.0.0", "wheel"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
diff --git a/textproc/py-python-iso639/pkg-descr b/textproc/py-python-iso639/pkg-descr
new file mode 100644
index 000000000000..83b27410857e
--- /dev/null
+++ b/textproc/py-python-iso639/pkg-descr
@@ -0,0 +1,9 @@
+python-iso639 is a Python package for ISO 639 language codes, names, and
+other associated information.
+
+Current features:
+
+* A representation of languages mapped across ISO 639-1, 639-2, and 639-3.
+* Functionality to "guess" what a language is for a given unknown language
+code or name.
+* Optimized for speed in retrieving language information.