git: aa311234cd43 - main - textproc/py-tableschema-to-template: Add py-tableschema-to-template 0.0.12

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 23:19:28 UTC
The branch main has been updated by sunpoet:

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

commit aa311234cd43e46a3a6db6775775b02678efde94
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-09 23:09:43 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-09 23:16:00 +0000

    textproc/py-tableschema-to-template: Add py-tableschema-to-template 0.0.12
    
    Given a Frictionless Table Schema, generate an Excel template with input
    validation.
    
    Features:
    - Enum constraints transformed into pull-downs.
    - Field descriptions transformed into comments in header.
    - Float, integer, and boolean type validation, with range checks on numbers.
    
    WWW: https://github.com/hubmapconsortium/tableschema-to-template
---
 textproc/Makefile                             |  1 +
 textproc/py-tableschema-to-template/Makefile  | 26 ++++++++++++++++++++++++++
 textproc/py-tableschema-to-template/distinfo  |  3 +++
 textproc/py-tableschema-to-template/pkg-descr |  9 +++++++++
 4 files changed, 39 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index abd3adfe1a86..ffbc944c1468 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1518,6 +1518,7 @@
     SUBDIR += py-sphinxext-opengraph
     SUBDIR += py-spylls
     SUBDIR += py-stemming
+    SUBDIR += py-tableschema-to-template
     SUBDIR += py-tabletext
     SUBDIR += py-tablib
     SUBDIR += py-terminaltables
diff --git a/textproc/py-tableschema-to-template/Makefile b/textproc/py-tableschema-to-template/Makefile
new file mode 100644
index 000000000000..534e03f95f30
--- /dev/null
+++ b/textproc/py-tableschema-to-template/Makefile
@@ -0,0 +1,26 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	tableschema-to-template
+PORTVERSION=	0.0.12
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Generate an Excel template with input validation from Frictionless Table Schema
+
+LICENSE=	MIT
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=1.0.0:devel/py-jsonschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>=3.13:devel/py-yaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}XlsxWriter>=1.2.8:textproc/py-xlsxwriter@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+post-patch:
+	@${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/VERSION
+
+.include <bsd.port.mk>
diff --git a/textproc/py-tableschema-to-template/distinfo b/textproc/py-tableschema-to-template/distinfo
new file mode 100644
index 000000000000..b1b538ae0fa3
--- /dev/null
+++ b/textproc/py-tableschema-to-template/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1654774048
+SHA256 (tableschema-to-template-0.0.12.tar.gz) = 48dd107e60c45b9c4a167d47ff40d6584b0daa7a57dc2ccf9ef2430b2f8a030d
+SIZE (tableschema-to-template-0.0.12.tar.gz) = 12146
diff --git a/textproc/py-tableschema-to-template/pkg-descr b/textproc/py-tableschema-to-template/pkg-descr
new file mode 100644
index 000000000000..1273f7fd116c
--- /dev/null
+++ b/textproc/py-tableschema-to-template/pkg-descr
@@ -0,0 +1,9 @@
+Given a Frictionless Table Schema, generate an Excel template with input
+validation.
+
+Features:
+- Enum constraints transformed into pull-downs.
+- Field descriptions transformed into comments in header.
+- Float, integer, and boolean type validation, with range checks on numbers.
+
+WWW: https://github.com/hubmapconsortium/tableschema-to-template