summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-python-ulid2/Makefile33
-rw-r--r--textproc/py-python-ulid2/distinfo3
-rw-r--r--textproc/py-python-ulid2/pkg-descr12
4 files changed, 49 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index b4b0e8b8dd22..57b9482bb14d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1554,6 +1554,7 @@
SUBDIR += py-python-pptx
SUBDIR += py-python-slugify
SUBDIR += py-python-ulid
+ SUBDIR += py-python-ulid2
SUBDIR += py-python-xmp-toolkit
SUBDIR += py-pytidylib
SUBDIR += py-pytkdocs
diff --git a/textproc/py-python-ulid2/Makefile b/textproc/py-python-ulid2/Makefile
new file mode 100644
index 000000000000..515f895f9d9c
--- /dev/null
+++ b/textproc/py-python-ulid2/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= python-ulid
+PORTVERSION= 2.7.0
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 2
+DISTNAME= python_ulid-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Universally unique lexicographically sortable identifier
+WWW= https://python-ulid.readthedocs.io/en/latest/ \
+ https://github.com/mdomke/python-ulid
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+
+USES= python:3.9+
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+PORTSCOUT= limit:^2\.
+
+OPTIONS_DEFINE= PYDANTIC
+PYDANTIC_DESC= Pydantic support
+
+PYDANTIC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0:devel/py-pydantic2@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/textproc/py-python-ulid2/distinfo b/textproc/py-python-ulid2/distinfo
new file mode 100644
index 000000000000..ba63f0ea835b
--- /dev/null
+++ b/textproc/py-python-ulid2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1718690484
+SHA256 (python_ulid-2.7.0.tar.gz) = 18eb595885140851a490a95b0da4447911ff69fa9f434732067b97f6956f9fe9
+SIZE (python_ulid-2.7.0.tar.gz) = 25010
diff --git a/textproc/py-python-ulid2/pkg-descr b/textproc/py-python-ulid2/pkg-descr
new file mode 100644
index 000000000000..4d39d340d65a
--- /dev/null
+++ b/textproc/py-python-ulid2/pkg-descr
@@ -0,0 +1,12 @@
+This port provides an implementation of ULID.
+
+A ULID is a universally unique lexicographically sortable identifier. It is
+- 128-bit compatible with UUID
+- 1.21e+24 unique ULIDs per millisecond
+- Lexicographically sortable!
+- Canonically encoded as a 26 character string, as opposed to the 36 character
+ UUID
+- Uses Crockford's base32 for better efficiency and readability (5 bits per
+ character)
+- Case insensitive
+- No special characters (URL safe)