diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-06-09 23:09:43 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-06-09 23:16:00 +0000 |
| commit | aa311234cd43e46a3a6db6775775b02678efde94 (patch) | |
| tree | b54a0eed7c6ec2167a7e32a819e04c5598c663bd | |
| parent | f38431617ecf744c09caccb0867b616b6e6b7c51 (diff) | |
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
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-tableschema-to-template/Makefile | 26 | ||||
| -rw-r--r-- | textproc/py-tableschema-to-template/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-tableschema-to-template/pkg-descr | 9 |
4 files changed, 39 insertions, 0 deletions
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 |
