From 791d3dba6cb3d7109c09696aaf3e9d077929a36a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 23:38:26 +0200 Subject: [PATCH 1/3] wyoming-piper: 1.6.0 -> 1.6.1 https://github.com/rhasspy/wyoming-piper/blob/v1.6.1/CHANGELOG.md --- pkgs/by-name/wy/wyoming-piper/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/wy/wyoming-piper/package.nix b/pkgs/by-name/wy/wyoming-piper/package.nix index 1470dab1c42d..69cd29d83052 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; [ From fe287f727c45e32c6f3ff23113b3d0c37c063d51 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 23:59:15 +0200 Subject: [PATCH 2/3] python3Packages.python-speech-features: init at 0.6.1 --- .../python-speech-features/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/python-speech-features/default.nix 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 { }; From 4ab09819c1f2f392ff0fddb88584e209eadafd0c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 26 Jun 2025 00:03:06 +0200 Subject: [PATCH 3/3] wyoming-piper: enable tests --- pkgs/by-name/wy/wyoming-piper/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/wy/wyoming-piper/package.nix b/pkgs/by-name/wy/wyoming-piper/package.nix index 69cd29d83052..7279c43f9477 100644 --- a/pkgs/by-name/wy/wyoming-piper/package.nix +++ b/pkgs/by-name/wy/wyoming-piper/package.nix @@ -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";