1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 numpy, 7 scipy, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "python-speech-features"; 13 version = "0.6.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "jameslyons"; 18 repo = "python_speech_features"; 19 rev = version; 20 hash = "sha256-IAQujxQ5hOXFNOIEhWsGOTeWqxyBmqL5HSVD4KYEn3U="; 21 }; 22 23 build-system = [ 24 setuptools 25 ]; 26 27 dependencies = [ 28 numpy 29 scipy 30 ]; 31 32 nativeBuildInputs = [ 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ 37 "python_speech_features" 38 ]; 39 40 meta = { 41 description = "Common speech features for ASR including MFCCs and filterbank energies"; 42 homepage = "https://github.com/jameslyons/python_speech_features"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ hexa ]; 45 }; 46}