1 |
commit: ca8aab1fc11a71e4a18f1e1f5ee8b96935754626 |
2 |
Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jul 28 09:59:20 2021 +0000 |
4 |
Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Jul 28 09:59:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ca8aab1f |
7 |
|
8 |
dev-python/auditok: add 0.2.0 tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/804549 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
12 |
Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> |
13 |
|
14 |
dev-python/auditok/Manifest | 2 +- |
15 |
dev-python/auditok/auditok-0.2.0.ebuild | 35 ++++++++++++++++++++++++++++++--- |
16 |
2 files changed, 33 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/auditok/Manifest b/dev-python/auditok/Manifest |
19 |
index df72d84f5..93a374199 100644 |
20 |
--- a/dev-python/auditok/Manifest |
21 |
+++ b/dev-python/auditok/Manifest |
22 |
@@ -1 +1 @@ |
23 |
-DIST auditok-0.2.0.tar.gz 2162248 BLAKE2B 4b1738f69050a012070a193324be149520660b333e6fadb7d015321fe0e069101f1e2c09dc753c1b0e8a2affe4aba1ddcb2e4eb6104b8a2daf211cb058495e9c SHA512 7c21b83a3ef5873b6670a09d447ec6d427145db311472aba57f2d22c5a4542bdd9d04e338e3e2e6be73c501fd3ab73f83568f4ebdab4f4484a50d453fb745860 |
24 |
+DIST auditok-0.2.0.tar.gz 2482517 BLAKE2B 8db341116e74d875f73757c758ad24c3f8b06cf69a95b09cf7dda30495e46e456861c03ce0bdea2a0c714225a452f6d8a85348c625343fc1e247acb11db31ee6 SHA512 aa9e05d03fde68277395134d247cf7c211b48852fe0e8ac6df9d773242363b692f0505317d54268e81dc29a49250775c4695f0f826d576589850d2290efadffb |
25 |
|
26 |
diff --git a/dev-python/auditok/auditok-0.2.0.ebuild b/dev-python/auditok/auditok-0.2.0.ebuild |
27 |
index d61d95433..4859fe11a 100644 |
28 |
--- a/dev-python/auditok/auditok-0.2.0.ebuild |
29 |
+++ b/dev-python/auditok/auditok-0.2.0.ebuild |
30 |
@@ -3,14 +3,43 @@ |
31 |
|
32 |
EAPI=7 |
33 |
|
34 |
-PYTHON_COMPAT=( python3_{6..9} ) |
35 |
+PYTHON_COMPAT=( python3_{8..9} ) |
36 |
|
37 |
-inherit distutils-r1 |
38 |
+inherit distutils-r1 optfeature |
39 |
|
40 |
DESCRIPTION="A module for Audio/Acoustic Activity Detection" |
41 |
HOMEPAGE="https://github.com/amsehili/auditok/" |
42 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+SRC_URI="https://github.com/amsehili/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
|
45 |
LICENSE="MIT" |
46 |
SLOT="0" |
47 |
KEYWORDS="~amd64" |
48 |
+ |
49 |
+BDEPEND=" |
50 |
+ test? ( |
51 |
+ dev-python/pydub[${PYTHON_USEDEP}] |
52 |
+ dev-python/genty[${PYTHON_USEDEP}] |
53 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
54 |
+ ) |
55 |
+ " |
56 |
+ |
57 |
+distutils_enable_tests unittest |
58 |
+ |
59 |
+python_prepare_all() { |
60 |
+ distutils-r1_python_prepare_all |
61 |
+ |
62 |
+ # these tests appear to be broken |
63 |
+ rm "${S}"/tests/test_plotting.py || die |
64 |
+} |
65 |
+ |
66 |
+python_test() { |
67 |
+ eunittest tests/ |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ optfeature "reading audio files in popular audio formats (ogg, mp3, etc.) or extracting audio from a video file" dev-python/pydub |
72 |
+ optfeature "reading audio data from the microphone and playing audio back" dev-python/pyaudio |
73 |
+ optfeature "showing progress bar while playing audio clips" dev-python/tqdm |
74 |
+ optfeature "plotting audio signal and detections" dev-python/matplotlib |
75 |
+ optfeature "matplotlib. Also used for some math operations instead of standard python if available" dev-python/numpy |
76 |
+} |