dev-python/genson: New package
authorAlexey Shvetsov <alexxy@gentoo.org>
Wed, 4 Mar 2020 18:00:23 +0000 (21:00 +0300)
committerAlexey Shvetsov <alexxy@gentoo.org>
Wed, 4 Mar 2020 18:01:45 +0000 (21:01 +0300)
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
dev-python/genson/Manifest [new file with mode: 0644]
dev-python/genson/genson-1.1.0.ebuild [new file with mode: 0644]
dev-python/genson/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/genson/Manifest b/dev-python/genson/Manifest
new file mode 100644 (file)
index 0000000..f6fed66
--- /dev/null
@@ -0,0 +1 @@
+DIST genson-1.1.0.tar.gz 26662 BLAKE2B 726b0467edca9ca503d73c914d35392f0784ae8be01a8287b84da3cd5ae4b4cd6e12a46b1a7baf73db40377b915ddb3c4b53f4a135e3923fa775af5b51a5261c SHA512 54264dcc51cd5ece9bd428079fcd5cf833f32ef36afbb7987de9982d33253834c5c8c35d18b21ad4003fc2ffac4da02965a00844457b7d8ca6c6bf3d3facb8d6
diff --git a/dev-python/genson/genson-1.1.0.ebuild b/dev-python/genson/genson-1.1.0.ebuild
new file mode 100644 (file)
index 0000000..da0e41b
--- /dev/null
@@ -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 (file)
index 0000000..0a41def
--- /dev/null
@@ -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>