From eabb127368198c960a5b44b6e653a8a7cae39f61 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sat, 18 Jan 2020 21:23:44 +0100 Subject: [PATCH] dev-python/soundfile: Drop python2 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B Signed-off-by: Nils Freydank --- .../soundfile/soundfile-0.10.3-r1.ebuild | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev-python/soundfile/soundfile-0.10.3-r1.ebuild diff --git a/dev-python/soundfile/soundfile-0.10.3-r1.ebuild b/dev-python/soundfile/soundfile-0.10.3-r1.ebuild new file mode 100644 index 0000000..d745be8 --- /dev/null +++ b/dev-python/soundfile/soundfile-0.10.3-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +# drop pypy{,3} as long as cffi has no support for it +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit distutils-r1 + +MY_PN="SoundFile" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="SoundFile is an audio library based on libsndfile, CFFI, and NumPy" +HOMEPAGE="https://github.com/bastibe/SoundFile" +# Upstream messes around whith uploading files. Cool. +# SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/bastibe/SoundFile/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="PySoundFile-BSD-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="dev-python/cffi[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + media-libs/libsndfile + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_test() { + py.test -vv +}