diff --git a/pkgs/by-name/wy/wyoming-piper/package.nix b/pkgs/by-name/wy/wyoming-piper/package.nix index 1470dab1c42d..7279c43f9477 100644 --- a/pkgs/by-name/wy/wyoming-piper/package.nix +++ b/pkgs/by-name/wy/wyoming-piper/package.nix @@ -6,14 +6,14 @@ python3Packages.buildPythonApplication rec { pname = "wyoming-piper"; - version = "1.6.0"; + version = "1.6.1"; pyproject = true; src = fetchFromGitHub { owner = "rhasspy"; repo = "wyoming-piper"; tag = "v${version}"; - hash = "sha256-pVpCnrf/BnAeyfyf82i9Ga/2WQUs1qGceL9uJ99WddY="; + hash = "sha256-r7odRraBSDP2fbRJ3ixaL80fhBSb9r5icPuf1Qa6Va8="; }; build-system = with python3Packages; [ @@ -33,7 +33,17 @@ python3Packages.buildPythonApplication rec { "wyoming_piper" ]; - doCheck = false; + nativeCheckInputs = with python3Packages; [ + numpy + pytest-asyncio + pytestCheckHook + python-speech-features + ]; + + disabledTests = [ + # network access + "test_piper" + ]; meta = with lib; { changelog = "https://github.com/rhasspy/wyoming-piper/blob/${src.tag}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/python-speech-features/default.nix b/pkgs/development/python-modules/python-speech-features/default.nix new file mode 100644 index 000000000000..a24c4720ab84 --- /dev/null +++ b/pkgs/development/python-modules/python-speech-features/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + numpy, + scipy, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "python-speech-features"; + version = "0.6.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "jameslyons"; + repo = "python_speech_features"; + rev = version; + hash = "sha256-IAQujxQ5hOXFNOIEhWsGOTeWqxyBmqL5HSVD4KYEn3U="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + numpy + scipy + ]; + + nativeBuildInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "python_speech_features" + ]; + + meta = { + description = "Common speech features for ASR including MFCCs and filterbank energies"; + homepage = "https://github.com/jameslyons/python_speech_features"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ hexa ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 68a80e0a1055..ddcfc73c28e0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14592,6 +14592,8 @@ self: super: with self; { python-songpal = callPackage ../development/python-modules/python-songpal { }; + python-speech-features = callPackage ../development/python-modules/python-speech-features { }; + python-sql = callPackage ../development/python-modules/python-sql { }; python-status = callPackage ../development/python-modules/python-status { };