From fe287f727c45e32c6f3ff23113b3d0c37c063d51 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 23:59:15 +0200 Subject: [PATCH] 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 { };