holgersson-overlay/dev-python/soundfile/soundfile-0.12.1-r1.ebuild
Nils Freydank 00292123fd
dev-python/soundfile: Add py 3.12
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
2024-05-09 22:15:57 +02:00

42 lines
979 B
Bash

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