pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-typedload: Import py-typedload-2.1 as wip/py-typedload



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon Apr 20 23:45:55 2020 +0200
Changeset:	3fc33f2f5054b1ed78f64d9e0ab6acc82862b7e8

Modified Files:
	Makefile
Added Files:
	py-typedload/DESCR
	py-typedload/Makefile
	py-typedload/PLIST
	py-typedload/distinfo

Log Message:
py-typedload: Import py-typedload-2.1 as wip/py-typedload

Load and dump json-like data into typed data structures.

This module provides an API to load dictionaries and lists (usually loaded from
json) into Python's NamedTuples, dataclass, sets, enums, and various other typed
data structures; respecting all the type-hints and performing type checks or
casts when needed.

It can also dump from typed data structures to json-like dictionaries and lists.
It is very useful for projects that use Mypy and deal with untyped data like
json, because it guarantees that the data will have the expected format.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3fc33f2f5054b1ed78f64d9e0ab6acc82862b7e8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile              |  1 +
 py-typedload/DESCR    | 10 ++++++++++
 py-typedload/Makefile | 19 +++++++++++++++++++
 py-typedload/PLIST    | 18 ++++++++++++++++++
 py-typedload/distinfo |  6 ++++++
 5 files changed, 54 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6247e13500..9c0c6e0a61 100644
--- a/Makefile
+++ b/Makefile
@@ -4104,6 +4104,7 @@ SUBDIR+=	py-txWS
 SUBDIR+=	py-txZMQ
 SUBDIR+=	py-txdbus
 SUBDIR+=	py-typedecorator
+SUBDIR+=	py-typedload
 SUBDIR+=	py-u2flib-server
 SUBDIR+=	py-ua-parser
 SUBDIR+=	py-ufl
diff --git a/py-typedload/DESCR b/py-typedload/DESCR
new file mode 100644
index 0000000000..3e747e4baf
--- /dev/null
+++ b/py-typedload/DESCR
@@ -0,0 +1,10 @@
+Load and dump json-like data into typed data structures.
+
+This module provides an API to load dictionaries and lists (usually loaded from
+json) into Python's NamedTuples, dataclass, sets, enums, and various other typed
+data structures; respecting all the type-hints and performing type checks or
+casts when needed.
+
+It can also dump from typed data structures to json-like dictionaries and lists.
+It is very useful for projects that use Mypy and deal with untyped data like
+json, because it guarantees that the data will have the expected format.
diff --git a/py-typedload/Makefile b/py-typedload/Makefile
new file mode 100644
index 0000000000..de63970bca
--- /dev/null
+++ b/py-typedload/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME=	typedload-2.1
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/typedload/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/ltworf/typedload
+COMMENT=	Load and dump data from json-like format into typed data structures
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES=	# none
+
+# Only for Python 3
+PYTHON_VERSIONS_INCOMPATIBLE=	27
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-typedload/PLIST b/py-typedload/PLIST
new file mode 100644
index 0000000000..144dbfe0eb
--- /dev/null
+++ b/py-typedload/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_FILE}
+${PYSITELIB}/typedload/__init__.py
+${PYSITELIB}/typedload/__init__.pyc
+${PYSITELIB}/typedload/__init__.pyo
+${PYSITELIB}/typedload/datadumper.py
+${PYSITELIB}/typedload/datadumper.pyc
+${PYSITELIB}/typedload/datadumper.pyo
+${PYSITELIB}/typedload/dataloader.py
+${PYSITELIB}/typedload/dataloader.pyc
+${PYSITELIB}/typedload/dataloader.pyo
+${PYSITELIB}/typedload/exceptions.py
+${PYSITELIB}/typedload/exceptions.pyc
+${PYSITELIB}/typedload/exceptions.pyo
+${PYSITELIB}/typedload/py.typed
+${PYSITELIB}/typedload/typechecks.py
+${PYSITELIB}/typedload/typechecks.pyc
+${PYSITELIB}/typedload/typechecks.pyo
diff --git a/py-typedload/distinfo b/py-typedload/distinfo
new file mode 100644
index 0000000000..b4df443184
--- /dev/null
+++ b/py-typedload/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (typedload-2.1.tar.gz) = 708180ce0f727a76ca5c8198fefb968e3541df14
+RMD160 (typedload-2.1.tar.gz) = ae8c7cbb50b7c7b8f80b0512fb6f1477a4dfcfd9
+SHA512 (typedload-2.1.tar.gz) = 5b3c70ab8c91418a4a1477b656bae7ec9424290bb59aae0ef6ef34232336d21c9b0f4cf25d174aeff164a6944c972652a5ffb6ab83fa49d6d81a660c5c457d31
+Size (typedload-2.1.tar.gz) = 12005 bytes


Home | Main Index | Thread Index | Old Index