1{ buildPythonPackage
2, fetchPypi
3, lib
4, matplotlib
5, numpy
6, pyaudio
7, pydub
8, pythonOlder
9, unittestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "auditok";
14 version = "0.1.5";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit version;
21 pname = "auditok";
22 hash = "sha256-HNsw9VLP7XEgs8E2X6p7ygDM47AwWxMYjptipknFig4=";
23 };
24
25 propagatedBuildInputs = [ matplotlib numpy pyaudio pydub ];
26
27 nativeCheckInputs = [ unittestCheckHook ];
28
29 unittestFlagsArray = [ "-s" "tests" ];
30
31 pythonImportsCheck = [ "auditok" ];
32
33 # The most recent version is 0.2.0, but the only dependent package is
34 # ffsubsync, which is pinned at 0.1.5.
35 passthru.skipBulkUpdate = true;
36
37 meta = with lib; {
38 description = "Audio Activity Detection tool that can process online data as well as audio files";
39 homepage = "https://github.com/amsehili/auditok/";
40 changelog = "https://github.com/amsehili/auditok/blob/v${version}/CHANGELOG";
41 license = licenses.mit;
42 maintainers = with maintainers; [ Benjamin-L ];
43 };
44}