1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 pybind11, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "pyspeex-noise"; 12 version = "1.0.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "rhasspy"; 17 repo = "pyspeex-noise"; 18 tag = version; 19 hash = "sha256-XtLA5yVVCZdpALPu3fx+U+aaA729Vs1UeOJsIm6/S+k="; 20 }; 21 22 build-system = [ 23 pybind11 24 setuptools 25 ]; 26 27 pythonImportsCheck = [ "pyspeex_noise" ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 meta = { 34 changelog = "https://github.com/rhasspy/pyspeex-noise/blob/${src.rev}/CHANGELOG.md"; 35 description = "Noise suppression and automatic gain with speex"; 36 homepage = "https://github.com/rhasspy/pyspeex-noise"; 37 license = with lib.licenses; [ 38 mit # pyspeex-noise 39 bsd3 # speex (vendored) 40 ]; 41 maintainers = with lib.maintainers; [ dotlambda ]; 42 }; 43}