diff options
| author | Wen Heping <wen@FreeBSD.org> | 2025-10-09 07:34:57 +0000 |
|---|---|---|
| committer | Wen Heping <wen@FreeBSD.org> | 2025-10-09 07:36:31 +0000 |
| commit | 41f847052670cf5507655a88560ab170e818a814 (patch) | |
| tree | 38c153fb04c9c774495ea828e1141200b2ee0194 | |
| parent | cd05827adff020f580cbdaae34ba8de6ec6601e6 (diff) | |
textproc/py-python-iso639: New port
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.
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-python-iso639/Makefile | 26 | ||||
| -rw-r--r-- | textproc/py-python-iso639/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-python-iso639/files/patch-pyproject.toml | 9 | ||||
| -rw-r--r-- | textproc/py-python-iso639/pkg-descr | 9 |
5 files changed, 48 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 228e93c7a42a..77ff92221841 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1570,6 +1570,7 @@ SUBDIR += py-python-docx SUBDIR += py-python-frontmatter SUBDIR += py-python-gettext + SUBDIR += py-python-iso639 SUBDIR += py-python-lsp-black SUBDIR += py-python-lsp-jsonrpc SUBDIR += py-python-lsp-server 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. |
