summaryrefslogtreecommitdiff
path: root/dev-python/genson
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/genson')
-rw-r--r--dev-python/genson/Manifest3
-rw-r--r--dev-python/genson/genson-1.1.0.ebuild33
-rw-r--r--dev-python/genson/metadata.xml15
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/genson/Manifest b/dev-python/genson/Manifest
new file mode 100644
index 000000000000..cb9f8e9931a0
--- /dev/null
+++ b/dev-python/genson/Manifest
@@ -0,0 +1,3 @@
+DIST genson-1.1.0.tar.gz 26662 BLAKE2B 726b0467edca9ca503d73c914d35392f0784ae8be01a8287b84da3cd5ae4b4cd6e12a46b1a7baf73db40377b915ddb3c4b53f4a135e3923fa775af5b51a5261c SHA512 54264dcc51cd5ece9bd428079fcd5cf833f32ef36afbb7987de9982d33253834c5c8c35d18b21ad4003fc2ffac4da02965a00844457b7d8ca6c6bf3d3facb8d6
+EBUILD genson-1.1.0.ebuild 700 BLAKE2B bb3ded0a5603b1dadc195486542233a02be119876657ad1bbf930a67a7f9adeda7a06a3bb9d365f56236e27cd816b983d610cc7881645d7119a4ad3494290251 SHA512 2e0a8a8a5270f27b3e727060720d9578c30b3402aab2fca1f952566356d096cc7b4788ae6fdea4c4ae9543aa73ed46bdee5d7c157f78d58007f3e01ba8f0d25f
+MISC metadata.xml 499 BLAKE2B 3b4c33ee482291e8c22cd4dbc83f8ce0640db00739db1be07d27778f1eb55e923ac7413f30ccd94b0b7fea6936a75e66ddbe4e42d4b035ecd7a641ba335e6460 SHA512 47f8f9a3a1467dcd877c10a9d3f0214edfe897a9874d20d655ae5296e12d197d5d6c0b39c5bca11b6a00df73a0135a8779804ea9763be51b136570e2e435774c
diff --git a/dev-python/genson/genson-1.1.0.ebuild b/dev-python/genson/genson-1.1.0.ebuild
new file mode 100644
index 000000000000..da0e41bb52d6
--- /dev/null
+++ b/dev-python/genson/genson-1.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{5,6,7})
+
+inherit distutils-r1
+
+DESCRIPTION="GenSON is a powerful, user-friendly JSON Schema generator built in Python"
+HOMEPAGE="https://pypi.org/project/genson https://github.com/wolverdude/genson"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+BDEPEND="
+ ${PYTHON_DEPS}
+ "
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ "
+DEPEND="${RDEPEND}
+ test? ( dev-python/jsonschema[${PYTHON_USEDEP}] )"
+
+RESTRICT="!test? ( test )"
+
+python_test() {
+ "${PYTHON}" -m unittest discover || die "Testing failed with ${EPYTHON}"
+}
diff --git a/dev-python/genson/metadata.xml b/dev-python/genson/metadata.xml
new file mode 100644
index 000000000000..0a41def911c8
--- /dev/null
+++ b/dev-python/genson/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+ <longdescription lang="en">
+ GenSON is a powerful, user-friendly JSON Schema generator built in Python
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">genson</remote-id>
+ <remote-id type="github">wolverdude/GenSON</remote-id>
+ </upstream>
+</pkgmetadata>