summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klausmann <klausman@gentoo.org>2016-08-31 09:45:39 +0200
committerTobias Klausmann <klausman@gentoo.org>2016-08-31 09:45:39 +0200
commit1da6ddbc716bb5abfa2fe66adaf4516f8238dc34 (patch)
treed8814f7a19c54bcfb40322d6ae98af092920daff /dev-python/pockets
parentdev-python/nose-descriptionfixer: Initial addition to the tree (diff)
downloadgentoo-1da6ddbc716bb5abfa2fe66adaf4516f8238dc34.tar.gz
gentoo-1da6ddbc716bb5abfa2fe66adaf4516f8238dc34.tar.bz2
gentoo-1da6ddbc716bb5abfa2fe66adaf4516f8238dc34.zip
dev-python/pockets: Initial addition to the tree
Diffstat (limited to 'dev-python/pockets')
-rw-r--r--dev-python/pockets/Manifest1
-rw-r--r--dev-python/pockets/files/no_installed_tests.patch11
-rw-r--r--dev-python/pockets/metadata.xml9
-rw-r--r--dev-python/pockets/pockets-0.3.ebuild37
4 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/pockets/Manifest b/dev-python/pockets/Manifest
new file mode 100644
index 000000000000..70be5cadc9bc
--- /dev/null
+++ b/dev-python/pockets/Manifest
@@ -0,0 +1 @@
+DIST pockets-0.3.tar.gz 20441 SHA256 5c9682eeb5b66fbbb69187ad51a4c3a8eb07b6e2718455a04703f7ff5d5f84be SHA512 da208b541aa4e0884e37a7d128d11d1d99fac22f10e5dbc88065487265aca8ca348286c0d0214dae657af824cca08f0585c70abc27be25f4c54040cd44a3e44c WHIRLPOOL 7ea2618aae4a919a9f5a68bc0f96a41743f924eb252788097b18a5c9ecb26bb8419e4f114e18fbe51dafdbcd0fa4ebcf517db9a958ea02ed2c53edd298234b84
diff --git a/dev-python/pockets/files/no_installed_tests.patch b/dev-python/pockets/files/no_installed_tests.patch
new file mode 100644
index 000000000000..05c23aaae901
--- /dev/null
+++ b/dev-python/pockets/files/no_installed_tests.patch
@@ -0,0 +1,11 @@
+--- setup.py.orig 2016-08-03 16:30:08.093499589 +0200
++++ setup.py 2016-08-03 16:30:40.861165597 +0200
+@@ -39,7 +39,7 @@
+ 'Topic :: Utilities',
+ ],
+ platforms='any',
+- packages=find_packages(),
++ packages=["pockets"],
+ install_requires=reqs,
+ tests_require=test_reqs
+ )
diff --git a/dev-python/pockets/metadata.xml b/dev-python/pockets/metadata.xml
new file mode 100644
index 000000000000..639c1bc61f6b
--- /dev/null
+++ b/dev-python/pockets/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>klausman@gentoo.org</email>
+ <name>Tobias Klausmann</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/dev-python/pockets/pockets-0.3.ebuild b/dev-python/pockets/pockets-0.3.ebuild
new file mode 100644
index 000000000000..67391dfa30e5
--- /dev/null
+++ b/dev-python/pockets/pockets-0.3.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=( python2_7 python3_{3,4,5} )
+
+inherit distutils-r1
+
+IUSE="test"
+
+DESCRIPTION="A collection of helpful Python tools"
+HOMEPAGE="https://pypi.python.org/pypi/pockets"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >=dev-python/six-1.5.2[${PYTHON_USEDEP}]
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
+ >=dev-python/flake8-2.3.0[${PYTHON_USEDEP}]
+ test? ( >=dev-python/pytest-2.6.4[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+ dev-python/setuptools[${PYTHON_USEDEP}]
+
+"
+src_prepare() {
+ epatch "${FILESDIR}/no_installed_tests.patch" || die
+}
+python_test() {
+ nosetests tests || die "tests failed with ${EPYTHON}"
+}