git: 96f825ff336c - main - textproc/py-python-ulid: Add py-python-ulid 2.2.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 14 Dec 2023 20:53:57 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=96f825ff336cb9213ae7e0a780b347da73fe42cf

commit 96f825ff336cb9213ae7e0a780b347da73fe42cf
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-14 20:41:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-14 20:41:51 +0000

    textproc/py-python-ulid: Add py-python-ulid 2.2.0
    
    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)
---
 textproc/Makefile                 |  1 +
 textproc/py-python-ulid/Makefile  | 25 +++++++++++++++++++++++++
 textproc/py-python-ulid/distinfo  |  3 +++
 textproc/py-python-ulid/pkg-descr | 12 ++++++++++++
 4 files changed, 41 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 37d0ef791c6c..d5659b5f8250 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1521,6 +1521,7 @@
     SUBDIR += py-python-markdown-math
     SUBDIR += py-python-pptx
     SUBDIR += py-python-slugify
+    SUBDIR += py-python-ulid
     SUBDIR += py-python-xmp-toolkit
     SUBDIR += py-pytidylib
     SUBDIR += py-pytkdocs
diff --git a/textproc/py-python-ulid/Makefile b/textproc/py-python-ulid/Makefile
new file mode 100644
index 000000000000..a0a699631909
--- /dev/null
+++ b/textproc/py-python-ulid/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	python-ulid
+PORTVERSION=	2.2.0
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+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
+
+.include <bsd.port.mk>
diff --git a/textproc/py-python-ulid/distinfo b/textproc/py-python-ulid/distinfo
new file mode 100644
index 000000000000..72356901abb3
--- /dev/null
+++ b/textproc/py-python-ulid/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1702543604
+SHA256 (python_ulid-2.2.0.tar.gz) = 9ec777177d396880d94be49ac7eb4ae2cd4a7474448bfdbfe911537add970aeb
+SIZE (python_ulid-2.2.0.tar.gz) = 21595
diff --git a/textproc/py-python-ulid/pkg-descr b/textproc/py-python-ulid/pkg-descr
new file mode 100644
index 000000000000..4d39d340d65a
--- /dev/null
+++ b/textproc/py-python-ulid/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)