python3Packages.pyopen-wakeword: init at 1.0.1

This commit is contained in:
Martin Weinelt
2025-10-17 21:21:42 +02:00
parent dede83c7b0
commit e48e6e0d6a
2 changed files with 58 additions and 0 deletions
@@ -0,0 +1,56 @@
{
lib,
autoPatchelfHook,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyopen-wakeword";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rhasspy";
repo = "pyopen-wakeword";
tag = "v${version}";
hash = "sha256-LJ0pHP4nsTx3GPuWUwOwNuXR9tUKABqSHnLSvMlfm1Y=";
};
postPatch = ''
python ./script/copy_lib
'';
nativeBuildInputs = [
autoPatchelfHook
];
build-system = [
setuptools
];
dependencies = [
numpy
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyopen_wakeword"
];
meta = {
description = "Alternative Python library for openWakeWord";
homepage = "https://github.com/rhasspy/pyopen-wakeword";
changelog = "https://github.com/rhasspy/pyopen-wakeword/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
# vendors prebuilt libtensorflowlite_c.{so,dll,dylib}
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}
+2
View File
@@ -13693,6 +13693,8 @@ self: super: with self; {
pyomo = callPackage ../development/python-modules/pyomo { };
pyopen-wakeword = callPackage ../development/python-modules/pyopen-wakeword/default.nix { };
pyopencl = callPackage ../development/python-modules/pyopencl { };
pyopengl = callPackage ../development/python-modules/pyopengl {