aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuraj Lutter <otis@FreeBSD.org>2025-09-14 10:45:55 +0000
committerJuraj Lutter <otis@FreeBSD.org>2025-09-14 10:45:55 +0000
commit063ade0f4ff9e3cc98ce10b011184094dd074cd2 (patch)
tree88bdc0b7a911c2ae85f2433df0a328958a841187
parentdb7912e393f7ce03e78e045d4a08b5620c04a56c (diff)
textproc/py-humps: Add new port
py-humps converts strings (and dictionary keys) between snake case, camel case and pascal case in Python. Sponsored by: resulta.tech
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-humps/Makefile23
-rw-r--r--textproc/py-humps/distinfo3
-rw-r--r--textproc/py-humps/pkg-descr2
4 files changed, 29 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index d6ae244ec3b0..897fcba54b82 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1417,6 +1417,7 @@
SUBDIR += py-html2text
SUBDIR += py-htmlmin2
SUBDIR += py-humanfriendly
+ SUBDIR += py-humps
SUBDIR += py-hunspell
SUBDIR += py-ini2toml
SUBDIR += py-interegular
diff --git a/textproc/py-humps/Makefile b/textproc/py-humps/Makefile
new file mode 100644
index 000000000000..0d31c4fe5076
--- /dev/null
+++ b/textproc/py-humps/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= pyhumps
+PORTVERSION= 3.9.0
+CATEGORIES= textproc python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= otis@FreeBSD.org
+COMMENT= Convert strings between cases
+WWW= https://github.com/nficano/humps
+
+LICENSE= UNLICENSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR}
+
+USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= nficano
+GH_PROJECT= humps
+GH_TAGNAME= v${PORTVERSION}
+
+USE_PYTHON= autoplist concurrent pep517
+
+.include <bsd.port.mk>
diff --git a/textproc/py-humps/distinfo b/textproc/py-humps/distinfo
new file mode 100644
index 000000000000..30694a53f5b2
--- /dev/null
+++ b/textproc/py-humps/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757846499
+SHA256 (nficano-humps-3.9.0-v3.9.0_GH0.tar.gz) = d70a866f1de9a7ff2bed7a649faa2984cfab2dbd66b3fa90605235fbfb8b7219
+SIZE (nficano-humps-3.9.0-v3.9.0_GH0.tar.gz) = 2390969
diff --git a/textproc/py-humps/pkg-descr b/textproc/py-humps/pkg-descr
new file mode 100644
index 000000000000..9689352ade1d
--- /dev/null
+++ b/textproc/py-humps/pkg-descr
@@ -0,0 +1,2 @@
+Convert strings (and dictionary keys) between snake case, camel case and pascal
+case in Python.