summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2020-03-04 21:00:23 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2020-03-04 21:01:45 +0300
commit62060ce5c736ff260648ac2c318171bafd463dc9 (patch)
tree4a0c7f08fa4a581b727aac9ddb4b1a01599474f0 /dev-python/genson
parentapp-emulation/containerd: 1.2.13 bump (diff)
downloadgentoo-62060ce5c736ff260648ac2c318171bafd463dc9.tar.gz
gentoo-62060ce5c736ff260648ac2c318171bafd463dc9.tar.bz2
gentoo-62060ce5c736ff260648ac2c318171bafd463dc9.zip
dev-python/genson: New package
Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'dev-python/genson')
-rw-r--r--dev-python/genson/Manifest1
-rw-r--r--dev-python/genson/genson-1.1.0.ebuild33
-rw-r--r--dev-python/genson/metadata.xml15
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/genson/Manifest b/dev-python/genson/Manifest
new file mode 100644
index 00000000000..f6fed66f63f
--- /dev/null
+++ b/dev-python/genson/Manifest
@@ -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
index 00000000000..da0e41bb52d
--- /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 00000000000..0a41def911c
--- /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>