commit: ca8aab1fc11a71e4a18f1e1f5ee8b96935754626 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> AuthorDate: Wed Jul 28 09:59:20 2021 +0000 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> CommitDate: Wed Jul 28 09:59:20 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ca8aab1f
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 <AT> gmail.com> dev-python/auditok/Manifest | 2 +- dev-python/auditok/auditok-0.2.0.ebuild | 35 ++++++++++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/dev-python/auditok/Manifest b/dev-python/auditok/Manifest index df72d84f5..93a374199 100644 --- a/dev-python/auditok/Manifest +++ b/dev-python/auditok/Manifest @@ -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 diff --git a/dev-python/auditok/auditok-0.2.0.ebuild b/dev-python/auditok/auditok-0.2.0.ebuild index d61d95433..4859fe11a 100644 --- a/dev-python/auditok/auditok-0.2.0.ebuild +++ b/dev-python/auditok/auditok-0.2.0.ebuild @@ -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 +}
