dev-python/auditok: add 0.2.0 tests

Closes: https://bugs.gentoo.org/804549
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
This commit is contained in:
Nicola Smaniotto
2021-07-28 11:59:20 +02:00
parent 62f75ba4b5
commit ca8aab1fc1
2 changed files with 33 additions and 4 deletions

View File

@@ -1 +1 @@
DIST auditok-0.2.0.tar.gz 2162248 BLAKE2B 4b1738f69050a012070a193324be149520660b333e6fadb7d015321fe0e069101f1e2c09dc753c1b0e8a2affe4aba1ddcb2e4eb6104b8a2daf211cb058495e9c SHA512 7c21b83a3ef5873b6670a09d447ec6d427145db311472aba57f2d22c5a4542bdd9d04e338e3e2e6be73c501fd3ab73f83568f4ebdab4f4484a50d453fb745860
DIST auditok-0.2.0.tar.gz 2482517 BLAKE2B 8db341116e74d875f73757c758ad24c3f8b06cf69a95b09cf7dda30495e46e456861c03ce0bdea2a0c714225a452f6d8a85348c625343fc1e247acb11db31ee6 SHA512 aa9e05d03fde68277395134d247cf7c211b48852fe0e8ac6df9d773242363b692f0505317d54268e81dc29a49250775c4695f0f826d576589850d2290efadffb

View File

@@ -3,14 +3,43 @@
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
inherit distutils-r1 optfeature
DESCRIPTION="A module for Audio/Acoustic Activity Detection"
HOMEPAGE="https://github.com/amsehili/auditok/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SRC_URI="https://github.com/amsehili/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
test? (
dev-python/pydub[${PYTHON_USEDEP}]
dev-python/genty[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest
python_prepare_all() {
distutils-r1_python_prepare_all
# these tests appear to be broken
rm "${S}"/tests/test_plotting.py || die
}
python_test() {
eunittest tests/
}
pkg_postinst() {
optfeature "reading audio files in popular audio formats (ogg, mp3, etc.) or extracting audio from a video file" dev-python/pydub
optfeature "reading audio data from the microphone and playing audio back" dev-python/pyaudio
optfeature "showing progress bar while playing audio clips" dev-python/tqdm
optfeature "plotting audio signal and detections" dev-python/matplotlib
optfeature "matplotlib. Also used for some math operations instead of standard python if available" dev-python/numpy
}