dev-python/audioread: 2.1.8 version bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 7 Dec 2019 17:25:47 +0000 (18:25 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 7 Dec 2019 22:51:38 +0000 (23:51 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.19
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-python/audioread/Manifest
dev-python/audioread/audioread-2.1.8.ebuild [new file with mode: 0644]
dev-python/audioread/files/audioread-2.1.8-test-deps.patch [new file with mode: 0644]

index 7608b16acbb9f8c4ef97c925ed8e0828e33348ca..8c6fae0cf09a43dfe42a2d9062d8a760aa8306af 100644 (file)
@@ -1 +1,2 @@
 DIST audioread-1.0.1.tar.gz 13004 BLAKE2B e2741e43904ab3eba821118163d019bc336fafc157c0a5ab7ccf09c2622d395da104232d5276fda32cd7e945a4b66279ee028bde502e2359fa58c210b5af7804 SHA512 18e9e696785fe2f1b1d6ad7fe64e2878bf490d72aef7500998bb48b0733b382cf0b171d26c5b1465947de1d5f6ded25e2b57947402c31a440e8f346722fdc533
+DIST audioread-2.1.8.tar.gz 21222 BLAKE2B 78cc55d45dd987fbe0171cd3da9f8441e38b60fa6f1b0ef8b0781abc91e6b447b8cf839437b59bfafdf13ca90bb50a032788e0470250f303122a46ddc24ebd19 SHA512 9db5ad1f8b2047256b5f6b4bbee2366043ed19d35ffd2766ae3ab66bdc5b9f63910bcf449fd42aab074fd8132642bf730c432aa0c8f3c5368cd6ef36d7f4f5a5
diff --git a/dev-python/audioread/audioread-2.1.8.ebuild b/dev-python/audioread/audioread-2.1.8.ebuild
new file mode 100644 (file)
index 0000000..f21eb33
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 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="Wrapper for audio file decoding using FFmpeg or GStreamer"
+HOMEPAGE="https://pypi.org/project/audioread/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+BDEPEND="
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               dev-python/pytest-runner[${PYTHON_USEDEP}]
+       )
+"
+RDEPEND="
+       || (
+               (
+                       dev-python/pygobject:3[${PYTHON_USEDEP}]
+                       media-libs/gstreamer:1.0
+                       media-plugins/gst-plugins-meta:1.0
+               )
+               virtual/ffmpeg
+       )
+"
+
+RESTRICT="!test? ( test )"
+
+PATCHES=( "${FILESDIR}/${P}-test-deps.patch" ) # git master
+
+python_prepare_all() {
+       distutils-r1_python_prepare_all
+       sed -e "/'pytest-runner'/d" -i setup.py || die
+}
+
+pkg_postinst() {
+       einfo "You may need to emerge additional GStreamer plugins or enable"
+       einfo "additional USE flags in media-video/ffmpeg to decode some types"
+       einfo "of audio files."
+}
diff --git a/dev-python/audioread/files/audioread-2.1.8-test-deps.patch b/dev-python/audioread/files/audioread-2.1.8-test-deps.patch
new file mode 100644 (file)
index 0000000..0a67767
--- /dev/null
@@ -0,0 +1,27 @@
+From 5dd6c87a53f3a6c5bfa6ea384598213c49402056 Mon Sep 17 00:00:00 2001
+From: Glen Baker <iepathos@gmail.com>
+Date: Mon, 5 Aug 2019 23:40:27 -0700
+Subject: [PATCH] Correct pytest-runner location in setup.py
+
+Moved pytest-runner from setup_requires to tests_require.  It is the tests that require pytest-runner.
+---
+ setup.py | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index bd90605..6041f6e 100644
+--- a/setup.py
++++ b/setup.py
+@@ -36,11 +36,8 @@ def _read(fn):
+       packages=['audioread'],
+-      setup_requires=[
+-          'pytest-runner'
+-      ],
+-
+       tests_require=[
++          'pytest-runner',
+           'pytest'
+       ],