mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
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>
54 lines
986 B
Nix
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 ];
|
|
};
|
|
}
|