git: 374b7d2c90f5 - main - devel/py-dataclasses-json: Add py-dataclasses-json 0.5.2
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Apr 18 07:08:33 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=374b7d2c90f5ee227994cd7a43669eda7b3746dd
commit 374b7d2c90f5ee227994cd7a43669eda7b3746dd
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-04-18 04:55:36 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-04-18 05:41:49 +0000
devel/py-dataclasses-json: Add py-dataclasses-json 0.5.2
This library provides a simple API for encoding and decoding dataclasses to and
from JSON.
WWW: https://github.com/lidatong/dataclasses-json
---
devel/Makefile | 1 +
devel/py-dataclasses-json/Makefile | 30 ++++++++++++++++++++++++++
devel/py-dataclasses-json/distinfo | 3 +++
devel/py-dataclasses-json/files/patch-setup.py | 11 ++++++++++
devel/py-dataclasses-json/pkg-descr | 4 ++++
5 files changed, 49 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index c0cf7a38bd6b..02df598a9552 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4329,6 +4329,7 @@
SUBDIR += py-darts.util.lru
SUBDIR += py-dask
SUBDIR += py-dataclasses
+ SUBDIR += py-dataclasses-json
SUBDIR += py-datadog
SUBDIR += py-datapackage
SUBDIR += py-datatest
diff --git a/devel/py-dataclasses-json/Makefile b/devel/py-dataclasses-json/Makefile
new file mode 100644
index 000000000000..f9eed63528f3
--- /dev/null
+++ b/devel/py-dataclasses-json/Makefile
@@ -0,0 +1,30 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+
+PORTNAME= dataclasses-json
+PORTVERSION= 0.5.2
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Easily serialize dataclasses to and from JSON
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}marshmallow>=3.3.0<4.0.0:devel/py-marshmallow@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}marshmallow-enum>=1.5.1<2.0.0:devel/py-marshmallow-enum@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}stringcase>=1.2.0<2.0.0:devel/py-stringcase@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-inspect>=0.4.0:devel/py-typing-inspect@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3700
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-dataclasses-json/distinfo b/devel/py-dataclasses-json/distinfo
new file mode 100644
index 000000000000..fd849848bf2d
--- /dev/null
+++ b/devel/py-dataclasses-json/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1618319914
+SHA256 (dataclasses-json-0.5.2.tar.gz) = 56ec931959ede74b5dedf65cf20772e6a79764d20c404794cce0111c88c085ff
+SIZE (dataclasses-json-0.5.2.tar.gz) = 28424
diff --git a/devel/py-dataclasses-json/files/patch-setup.py b/devel/py-dataclasses-json/files/patch-setup.py
new file mode 100644
index 000000000000..b61afbe675b2
--- /dev/null
+++ b/devel/py-dataclasses-json/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2020-07-28 20:02:19 UTC
++++ setup.py
+@@ -21,7 +21,7 @@ setup(
+ 'marshmallow>=3.3.0,<4.0.0',
+ 'marshmallow-enum>=1.5.1,<2.0.0',
+ 'typing-inspect>=0.4.0',
+- 'stringcase==1.2.0,<2.0.0'
++ 'stringcase>=1.2.0,<2.0.0'
+ ],
+ python_requires='>=3.6',
+ extras_require={
diff --git a/devel/py-dataclasses-json/pkg-descr b/devel/py-dataclasses-json/pkg-descr
new file mode 100644
index 000000000000..8e09c3903571
--- /dev/null
+++ b/devel/py-dataclasses-json/pkg-descr
@@ -0,0 +1,4 @@
+This library provides a simple API for encoding and decoding dataclasses to and
+from JSON.
+
+WWW: https://github.com/lidatong/dataclasses-json
More information about the dev-commits-ports-all
mailing list