nixpkgs/pkgs/development/python-modules/pocketsphinx/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
986 B
Nix

{
lib,
buildPythonPackage,
cmake,
cython,
memory-profiler,
ninja,
pathspec,
pocketsphinx,
pytestCheckHook,
scikit-build-core,
sounddevice,
}:
buildPythonPackage rec {
inherit (pocketsphinx) version src;
pname = "pocketsphinx";
pyproject = true;
dontUseCmakeConfigure = true;
env.CMAKE_ARGS = lib.cmakeBool "USE_INSTALLED_POCKETSPHINX" true;
buildInputs = [ pocketsphinx ];
build-system = [
cmake
cython
ninja
pathspec
scikit-build-core
];
dependencies = [ sounddevice ];
nativeCheckInputs = [
memory-profiler
pytestCheckHook
];
pythonImportsCheck = [ "pocketsphinx" ];
meta = {
description = "Small speech recognizer";
homepage = "https://github.com/cmusphinx/pocketsphinx";
changelog = "https://github.com/cmusphinx/pocketsphinx/blob/v${version}/NEWS";
license = with lib.licenses; [
bsd2
bsd3
mit
];
maintainers = with lib.maintainers; [ jopejoe1 ];
};
}