summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2019-12-17 12:00:55 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-01-15 13:51:58 +0200
commitfe40e97bc435704c448fa6e374c862ca82626df1 (patch)
tree264aa4f95056741cb9b90932b17a5e8e59f9d2fd /dev-python/wurlitzer
parentsys-kernel/gentoo-kernel-bin: Bump to 4.19.96 (diff)
downloadgentoo-fe40e97bc435704c448fa6e374c862ca82626df1.tar.gz
gentoo-fe40e97bc435704c448fa6e374c862ca82626df1.tar.bz2
gentoo-fe40e97bc435704c448fa6e374c862ca82626df1.zip
dev-python/wurlitzer: new package
Capture C-level stdout/stderr in Python Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20 Closes: https://github.com/gentoo/gentoo/pull/14012 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/wurlitzer')
-rw-r--r--dev-python/wurlitzer/Manifest1
-rw-r--r--dev-python/wurlitzer/metadata.xml13
-rw-r--r--dev-python/wurlitzer/wurlitzer-2.0.0.ebuild25
3 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/wurlitzer/Manifest b/dev-python/wurlitzer/Manifest
new file mode 100644
index 000000000000..03996c2f8cd9
--- /dev/null
+++ b/dev-python/wurlitzer/Manifest
@@ -0,0 +1 @@
+DIST wurlitzer-2.0.0.tar.gz 10203 BLAKE2B 526f1fa1cf2f257c126a4f2c67b27b373b23e113552e72372029ab69a6b629d9453c39feac083c1376e3996a44af8ad823d1ca119515b420d9fefbbf326da38e SHA512 5cafdf84e47e6d18074f6ed3af6bab2eaa1f5cfd3d658ea02a49d387127e9a9101de05c864480af42f5a7650cc47e0a218e822912a4ba3ef826e71206dd2f3e9
diff --git a/dev-python/wurlitzer/metadata.xml b/dev-python/wurlitzer/metadata.xml
new file mode 100644
index 000000000000..dd0bd9c021f6
--- /dev/null
+++ b/dev-python/wurlitzer/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andrewammerlaan@riseup.net</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/wurlitzer/wurlitzer-2.0.0.ebuild b/dev-python/wurlitzer/wurlitzer-2.0.0.ebuild
new file mode 100644
index 000000000000..aa2a9e30d181
--- /dev/null
+++ b/dev-python/wurlitzer/wurlitzer-2.0.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Capture C-level stdout/stderr in Python"
+HOMEPAGE="https://github.com/minrk/wurlitzer https://pypi.org/project/wurlitzer"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+
+python_test() {
+ pytest -vv test.py || die "Tests fail with ${EPYTHON}"
+}