holgersson-overlay/dev-python/soundfile/soundfile-0.10.3_p20201201-r1.ebuild
Nils Freydank 028478d40a
dev-python/soundfile: Revbump to EAPI="8"
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Nils Freydank <holgersson@posteo.de>
2021-07-10 19:09:23 +02:00

46 lines
1.1 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
COMMIT_ID="744efb4b01abc72498a96b09115b42a4cabd85e4"
DESCRIPTION="SoundFile is an audio library based on libsndfile, CFFI, and NumPy"
HOMEPAGE="https://github.com/bastibe/python-soundfile"
if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://github.com/bastibe/python-${PN}"
inherit git-r3
else
if [[ ${PV} == *_p* ]]; then
SRC_URI="https://github.com/bastibe/python-${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/python-${PN}-${COMMIT_ID}"
KEYWORDS="~amd64 ~x86"
else
SRC_URI="https://github.com/bastibe/python-${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
fi
LICENSE="PySoundFile-BSD-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
# Some tests result in sandbox violations.
RESTRICT="test"
DEPEND="
dev-python/cffi[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
media-libs/libsndfile
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
python_test() {
py.test -vv
}