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