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