summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2017-09-29 13:39:59 +0000
committerjoerg <joerg@pkgsrc.org>2017-09-29 13:39:59 +0000
commitefb5afbe1bf4d2893585ffb2620da431c9b69e7b (patch)
treedde300e2ddbebf6c799716db71e730564ab939eb /textproc
parent117311ac60e56f6a63338304b759ba5ff604042c (diff)
downloadpkgsrc-efb5afbe1bf4d2893585ffb2620da431c9b69e7b.tar.gz
Add py-dicttoxml-1.7.4:
This module converts a Python dictionary or other native data type into a valid XML string. Supported item are int, float, long, decimal.Decimal, bool, str, unicode, datetime, None and other number-like objects. Supported collection are list, set, tuple and dict, as well as iterable and dict-like objects. Items with a datetime type are converted to ISO format strings. Items with a None type become empty XML elements.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-dicttoxml/DESCR8
-rw-r--r--textproc/py-dicttoxml/Makefile18
-rw-r--r--textproc/py-dicttoxml/PLIST5
-rw-r--r--textproc/py-dicttoxml/distinfo6
4 files changed, 37 insertions, 0 deletions
diff --git a/textproc/py-dicttoxml/DESCR b/textproc/py-dicttoxml/DESCR
new file mode 100644
index 00000000000..7522327f82a
--- /dev/null
+++ b/textproc/py-dicttoxml/DESCR
@@ -0,0 +1,8 @@
+This module converts a Python dictionary or other native data type into a
+valid XML string.
+
+Supported item are int, float, long, decimal.Decimal, bool, str, unicode,
+datetime, None and other number-like objects. Supported collection are
+list, set, tuple and dict, as well as iterable and dict-like objects.
+Items with a datetime type are converted to ISO format strings. Items
+with a None type become empty XML elements.
diff --git a/textproc/py-dicttoxml/Makefile b/textproc/py-dicttoxml/Makefile
new file mode 100644
index 00000000000..f8340627efb
--- /dev/null
+++ b/textproc/py-dicttoxml/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2017/09/29 13:39:59 joerg Exp $
+
+DISTNAME= dicttoxml-1.7.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc python
+MASTER_SITES= ${MASTER_SITE_PYPI:=d/dicttoxml/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/quandyfactory/dicttoxml
+COMMENT= Library for simple XML serialization
+LICENSE= gnu-gpl-v2
+
+# No real tests
+do-test:
+ ${NADA}
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-dicttoxml/PLIST b/textproc/py-dicttoxml/PLIST
new file mode 100644
index 00000000000..3138204eee8
--- /dev/null
+++ b/textproc/py-dicttoxml/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/29 13:39:59 joerg Exp $
+${PYSITELIB}/${EGG_FILE}
+${PYSITELIB}/dicttoxml.py
+${PYSITELIB}/dicttoxml.pyc
+${PYSITELIB}/dicttoxml.pyo
diff --git a/textproc/py-dicttoxml/distinfo b/textproc/py-dicttoxml/distinfo
new file mode 100644
index 00000000000..70d9c4ede84
--- /dev/null
+++ b/textproc/py-dicttoxml/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/09/29 13:39:59 joerg Exp $
+
+SHA1 (dicttoxml-1.7.4.tar.gz) = dc5c2776518ae57ac5a567baa652e7abd8554b76
+RMD160 (dicttoxml-1.7.4.tar.gz) = 0e5d2626b7388226abf8213d6c2d67961f75c251
+SHA512 (dicttoxml-1.7.4.tar.gz) = 91abcf2b9b248717618e9fc1c8694e881b9deaa16438dd4674f94a22b4aabfdab3b13f95c3d44a60577d49eca82fb268f59b33d1312cf5388bdaf949a2865cbf
+Size (dicttoxml-1.7.4.tar.gz) = 18190 bytes