summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Vig <sean.v.775@gmail.com>2017-05-23 08:32:09 -0400
committerMichał Górny <mgorny@gentoo.org>2017-06-03 12:27:54 +0200
commit62308fdf8373e8a42c501c90b4b2b658b6d03aca (patch)
tree3f9281c936d62f5c96df0988e2ac89562422fa39 /dev-python/subprocess32/subprocess32-3.2.7.ebuild
parentsys-devel/llvm: Move 3.9.1 patchset to tarball (diff)
downloadgentoo-62308fdf8373e8a42c501c90b4b2b658b6d03aca.tar.gz
gentoo-62308fdf8373e8a42c501c90b4b2b658b6d03aca.tar.bz2
gentoo-62308fdf8373e8a42c501c90b4b2b658b6d03aca.zip
dev-python/subprocess32: Add new package
Diffstat (limited to 'dev-python/subprocess32/subprocess32-3.2.7.ebuild')
-rw-r--r--dev-python/subprocess32/subprocess32-3.2.7.ebuild23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-python/subprocess32/subprocess32-3.2.7.ebuild b/dev-python/subprocess32/subprocess32-3.2.7.ebuild
new file mode 100644
index 000000000000..452ae88d7ab1
--- /dev/null
+++ b/dev-python/subprocess32/subprocess32-3.2.7.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A backport of the subprocess module from Python 3.2/3.3 for use on 2.x"
+HOMEPAGE="https://github.com/google/python-subprocess32"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="PSF-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+PATCHES=( "${FILESDIR}"/${P}-sandbox-test-fix.patch )
+
+python_test() {
+ "${PYTHON}" test_subprocess32.py || die "Tests fail with ${EPYTHON}"
+}