git: 5a63c352e6a9 - main - devel/py-sqids: new port had been added (+)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Thu, 08 Feb 2024 08:29:43 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a63c352e6a95d72a9ccc4a77ccacf9606848cf6

commit 5a63c352e6a95d72a9ccc4a77ccacf9606848cf6
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-02-08 08:28:52 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-02-08 08:28:52 +0000

    devel/py-sqids: new port had been added (+)
    
    Python module to generate YouTube-like IDs from numbers.
    
    WWW: https://sqids.org/python
---
 devel/Makefile           |  1 +
 devel/py-sqids/Makefile  | 20 ++++++++++++++++++++
 devel/py-sqids/distinfo  |  3 +++
 devel/py-sqids/pkg-descr | 15 +++++++++++++++
 4 files changed, 39 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 5fee254e1cdd..1b8fdbf870ce 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5644,6 +5644,7 @@
     SUBDIR += py-speg
     SUBDIR += py-spyder-kernels
     SUBDIR += py-spyder-unittest
+    SUBDIR += py-sqids
     SUBDIR += py-squint
     SUBDIR += py-sre-yield
     SUBDIR += py-srsly
diff --git a/devel/py-sqids/Makefile b/devel/py-sqids/Makefile
new file mode 100644
index 000000000000..2e61457dc049
--- /dev/null
+++ b/devel/py-sqids/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	sqids
+PORTVERSION=	0.4.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	python@FreeBSD.org
+COMMENT=	Generate YouTube-like IDs from numbers
+WWW=		https://sqids.org/python
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/devel/py-sqids/distinfo b/devel/py-sqids/distinfo
new file mode 100644
index 000000000000..0771ad4390f9
--- /dev/null
+++ b/devel/py-sqids/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699862631
+SHA256 (sqids-0.4.1.tar.gz) = ffc3fbfef63491bee8b940a98065388345dbefb06d49e415b7a9e475ca200f9d
+SIZE (sqids-0.4.1.tar.gz) = 14060
diff --git a/devel/py-sqids/pkg-descr b/devel/py-sqids/pkg-descr
new file mode 100644
index 000000000000..8b44e4dd7bcd
--- /dev/null
+++ b/devel/py-sqids/pkg-descr
@@ -0,0 +1,15 @@
+Sqids (pronounced "squids") is a small library that lets one generate
+YouTube-like unique IDs from numbers.  It is good for link shortening,
+fast and URL-safe ID generation, and decoding back into numbers for
+quicker database lookups.
+
+Good for:
+
+  - Generating IDs for public URLs (e.g. link shortening)
+  - Generating IDs for internal systems (e.g. event tracking)
+  - Decoding for quicker database lookups (e.g. by primary keys)
+
+Not good for:
+
+  - Sensitive data (this is not an encryption library)
+  - User IDs (can be decoded revealing user count)