1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 stdenv, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 numpy, 12 onnxruntime, 13 14 # tests 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "pysilero-vad"; 20 version = "2.1.1"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "rhasspy"; 25 repo = "pysilero-vad"; 26 tag = "v${version}"; 27 hash = "sha256-zxvYvPnL99yIVHrzbRbKmTazzlefOS+s2TAWLweRSYE="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 numpy 34 onnxruntime 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "pysilero_vad" ]; 40 41 meta = with lib; { 42 # what(): /build/source/include/onnxruntime/core/common/logging/logging.h:294 static const onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger() Attempt to use DefaultLogger but none has been registered. 43 broken = stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux; 44 description = "Pre-packaged voice activity detector using silero-vad"; 45 homepage = "https://github.com/rhasspy/pysilero-vad"; 46 changelog = "https://github.com/rhasspy/pysilero-vad/blob/${src.tag}/CHANGELOG.md"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ hexa ]; 49 }; 50}