aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Michiels <driesm@FreeBSD.org>2022-08-08 18:07:01 +0000
committerDries Michiels <driesm@FreeBSD.org>2022-08-08 18:52:16 +0000
commit84b24797059b7cc85c256747586059aaa85a9694 (patch)
tree49bacd323a8874bfee54829e049de13849b21220
parent02d01cf0eba9c8571afd005ac8640dba7a947089 (diff)
downloadports-84b24797059b7cc85c256747586059aaa85a9694.tar.gz
ports-84b24797059b7cc85c256747586059aaa85a9694.zip
devel/py-voluptuous-serialize: add new port
Convert Voluptuous schemas to dictionaries so they can be serialized.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-voluptuous-serialize/Makefile20
-rw-r--r--devel/py-voluptuous-serialize/distinfo3
-rw-r--r--devel/py-voluptuous-serialize/pkg-descr5
4 files changed, 29 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 3815d5aceb5f..1942b238a863 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5426,6 +5426,7 @@
SUBDIR += py-visitor
SUBDIR += py-vistir
SUBDIR += py-voluptuous
+ SUBDIR += py-voluptuous-serialize
SUBDIR += py-vsts
SUBDIR += py-vsts-cd-manager
SUBDIR += py-vulture
diff --git a/devel/py-voluptuous-serialize/Makefile b/devel/py-voluptuous-serialize/Makefile
new file mode 100644
index 000000000000..5fe4904243ba
--- /dev/null
+++ b/devel/py-voluptuous-serialize/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= voluptuous-serialize
+DISTVERSION= 2.5.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= driesm@FreeBSD.org
+COMMENT= Convert voluptuous schemas to JSON
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}voluptuous>=0:devel/py-voluptuous@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-voluptuous-serialize/distinfo b/devel/py-voluptuous-serialize/distinfo
new file mode 100644
index 000000000000..d8aeb1bfe971
--- /dev/null
+++ b/devel/py-voluptuous-serialize/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659981221
+SHA256 (voluptuous-serialize-2.5.0.tar.gz) = 5359f2e0a4f972ae03066e0777b4f0755c9226b2af099ca4fc55432efd1a447b
+SIZE (voluptuous-serialize-2.5.0.tar.gz) = 7450
diff --git a/devel/py-voluptuous-serialize/pkg-descr b/devel/py-voluptuous-serialize/pkg-descr
new file mode 100644
index 000000000000..7e9e0f1fdb77
--- /dev/null
+++ b/devel/py-voluptuous-serialize/pkg-descr
@@ -0,0 +1,5 @@
+Convert Voluptuous schemas to dictionaries so they can be serialized.
+You can pass a custom serializer to be able to process custom validators.
+If the serializer returns UNSUPPORTED, it will return to normal processing.
+
+WWW: https://github.com/home-assistant-libs/voluptuous-serialize