git: 1b57c405f3a3 - main - devel/py-hologram: new port

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Sat, 21 Oct 2023 16:44:59 UTC
The branch main has been updated by pi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1b57c405f3a33ffd65551d55c3567cb58a508419

commit 1b57c405f3a33ffd65551d55c3567cb58a508419
Author:     Pat Maddox <pat@patmaddox.com>
AuthorDate: 2023-10-21 16:43:43 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2023-10-21 16:44:49 +0000

    devel/py-hologram: new port
    
    Hologram is a lightweight library to generate Draft 7 compatible JSON Schemas
    from python 3.7 dataclasses. Python 3.6 is supported through the dataclasses
    backport. It is forked from dataclasses-jsonschema created by s-knibbs.
    
    PR:     274579
    Author: Pat Maddox <pat@patmaddox.com>
---
 devel/Makefile              |  1 +
 devel/py-hologram/Makefile  | 19 +++++++++++++++++++
 devel/py-hologram/distinfo  |  3 +++
 devel/py-hologram/pkg-descr |  3 +++
 4 files changed, 26 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 279ddf9e5ce1..e559fc2479e7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4793,6 +4793,7 @@
     SUBDIR += py-hgtools
     SUBDIR += py-hidraw
     SUBDIR += py-holidays
+    SUBDIR += py-hologram
     SUBDIR += py-homebase
     SUBDIR += py-http-prompt
     SUBDIR += py-humanize
diff --git a/devel/py-hologram/Makefile b/devel/py-hologram/Makefile
new file mode 100644
index 000000000000..618e050ea3e4
--- /dev/null
+++ b/devel/py-hologram/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	hologram
+PORTVERSION=	0.0.16
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	pat@patmaddox.com
+COMMENT=	JSON schema generation from dataclasses
+WWW=		https://github.com/dbt-labs/hologram
+
+LICENSE=	MIT
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=2.8,<2.9:devel/py-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0:devel/py-jsonschema@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+.include <bsd.port.mk>
diff --git a/devel/py-hologram/distinfo b/devel/py-hologram/distinfo
new file mode 100644
index 000000000000..aa1167642f9d
--- /dev/null
+++ b/devel/py-hologram/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691524948
+SHA256 (hologram-0.0.16.tar.gz) = 1c2c921b4e575361623ea0e0d0aa5aee377b1a333cc6c6a879e213ed34583e55
+SIZE (hologram-0.0.16.tar.gz) = 18956
diff --git a/devel/py-hologram/pkg-descr b/devel/py-hologram/pkg-descr
new file mode 100644
index 000000000000..f1d5c245242d
--- /dev/null
+++ b/devel/py-hologram/pkg-descr
@@ -0,0 +1,3 @@
+Hologram is a lightweight library to generate Draft 7 compatible JSON Schemas
+from python 3.7 dataclasses. Python 3.6 is supported through the dataclasses
+backport. It is forked from dataclasses-jsonschema created by s-knibbs.