summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-08-27 17:35:56 +0200
committerJustin Lecher <jlec@gentoo.org>2015-08-27 17:36:05 +0200
commit3f9734ef19af6060db4288dc32a2935d8a54686c (patch)
tree7d35c2cf5f55a7c6be064a700298f53684cf404d /dev-python/pykwalify
parentkde-apps: version bump kde-runtime 15.08.0. (diff)
downloadgentoo-3f9734ef19af6060db4288dc32a2935d8a54686c.tar.gz
gentoo-3f9734ef19af6060db4288dc32a2935d8a54686c.tar.bz2
gentoo-3f9734ef19af6060db4288dc32a2935d8a54686c.zip
dev-python/pykwalify: New package, ebuild written by me
Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/pykwalify')
-rw-r--r--dev-python/pykwalify/Manifest1
-rw-r--r--dev-python/pykwalify/files/pykwalify-1.4.0-S.patch24
-rw-r--r--dev-python/pykwalify/metadata.xml8
-rw-r--r--dev-python/pykwalify/pykwalify-1.4.0.ebuild37
-rw-r--r--dev-python/pykwalify/pykwalify-9999.ebuild38
5 files changed, 108 insertions, 0 deletions
diff --git a/dev-python/pykwalify/Manifest b/dev-python/pykwalify/Manifest
new file mode 100644
index 000000000000..536957870d91
--- /dev/null
+++ b/dev-python/pykwalify/Manifest
@@ -0,0 +1 @@
+DIST pykwalify-1.4.0.tar.gz 23126 SHA256 25ab7c4303ca4631dd89de851535d1284a8799c7b696ddbf95056f0b615f4520 SHA512 072f646a9846122e74fb09b682abaf89b93ded52b9e32053586658a4a5a416bc51d051b1607358450324ceb963e3cd66ae487421275cc7928facdb2acede2797 WHIRLPOOL 826cd36b5f1061a60c2056d532671cca5865462805e5c6f6c9b83e149d9775f9a2ffb559d5ea8dd18986eb7dffe36710cc776e022c2d0b36fc51a1045e52b4a0
diff --git a/dev-python/pykwalify/files/pykwalify-1.4.0-S.patch b/dev-python/pykwalify/files/pykwalify-1.4.0-S.patch
new file mode 100644
index 000000000000..0f133c9c95c8
--- /dev/null
+++ b/dev-python/pykwalify/files/pykwalify-1.4.0-S.patch
@@ -0,0 +1,24 @@
+ tests/test_core.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/test_core.py b/tests/test_core.py
+index 2fae7bc..0773f88 100644
+--- a/tests/test_core.py
++++ b/tests/test_core.py
+@@ -397,12 +397,12 @@ class TestCore(object):
+ ]
+
+ # Add override magic to make it easier to test a specific file
+- if "S" in os.environ:
+- pass_tests = [os.environ["S"]]
++ if "_S" in os.environ:
++ pass_tests = [os.environ["_S"]]
+ _fail_tests = []
+- elif "F" in os.environ:
++ elif "_F" in os.environ:
+ pass_tests = []
+- _fail_tests = [(os.environ["F"], SchemaError)]
++ _fail_tests = [(os.environ["_F"], SchemaError)]
+
+ for passing_test_file in pass_tests:
+ f = self.f(os.path.join("success", passing_test_file))
diff --git a/dev-python/pykwalify/metadata.xml b/dev-python/pykwalify/metadata.xml
new file mode 100644
index 000000000000..c1661663322e
--- /dev/null
+++ b/dev-python/pykwalify/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ <name>Justin Lecher</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pykwalify/pykwalify-1.4.0.ebuild b/dev-python/pykwalify/pykwalify-1.4.0.ebuild
new file mode 100644
index 000000000000..23ae49c4d03c
--- /dev/null
+++ b/dev-python/pykwalify/pykwalify-1.4.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python lib/cli for JSON/YAML schema validation"
+HOMEPAGE="https://pypi.python.org/pypi/pykwalify https://github.com/Grokzen/pykwalify"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/docopt-0.6.2
+ >=dev-python/pyyaml-3.11
+ >=dev-python/python-dateutil-2.4.2
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/testfixtures[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=( "${FILESDIR}"/${P}-S.patch )
+
+python_test() {
+ py.test || die
+}
diff --git a/dev-python/pykwalify/pykwalify-9999.ebuild b/dev-python/pykwalify/pykwalify-9999.ebuild
new file mode 100644
index 000000000000..7732db73f88e
--- /dev/null
+++ b/dev-python/pykwalify/pykwalify-9999.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit distutils-r1 git-r3
+
+DESCRIPTION="Python lib/cli for JSON/YAML schema validation"
+HOMEPAGE="https://pypi.python.org/pypi/pykwalify https://github.com/Grokzen/pykwalify"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/Grokzen/pykwalify.git"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS=""
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/docopt-0.6.2
+ >=dev-python/pyyaml-3.11
+ >=dev-python/python-dateutil-2.4.2
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/testfixtures[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.4.0-S.patch )
+
+python_test() {
+ py.test || die
+}