pocketsphinx: init at 5.0.3
This commit is contained in:
parent
5c9a9fed37
commit
adc0357732
66
pkgs/by-name/po/pocketsphinx/package.nix
Normal file
66
pkgs/by-name/po/pocketsphinx/package.nix
Normal file
@ -0,0 +1,66 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
cmake,
|
||||
doxygen,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
graphviz,
|
||||
gst_all_1,
|
||||
pkg-config,
|
||||
testers,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "pocketsphinx";
|
||||
version = "5.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cmusphinx";
|
||||
repo = "pocketsphinx";
|
||||
rev = "refs/tags/v${finalAttrs.version}";
|
||||
hash = "sha256-aCQpRmGHX08rA8UIt6Xf37XM34HysEzvcucLhL355k8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
doxygen
|
||||
graphviz
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [ gst_all_1.gstreamer ];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
||||
(lib.cmakeBool "BUILD_GSTREAMER" true)
|
||||
(lib.cmakeFeature "CMAKE_INSTALL_DATADIR" "${placeholder "data"}/share")
|
||||
];
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"data"
|
||||
"dev"
|
||||
"lib"
|
||||
"man"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = gitUpdater { rev-prefix = "v"; };
|
||||
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Small speech recognizer";
|
||||
homepage = "https://github.com/cmusphinx/pocketsphinx";
|
||||
changelog = "https://github.com/cmusphinx/pocketsphinx/blob/v${finalAttrs.version}/NEWS";
|
||||
license = with licenses; [
|
||||
bsd2
|
||||
bsd3
|
||||
mit
|
||||
];
|
||||
pkgConfigModules = [ "pocketsphinx" ];
|
||||
mainProgram = "pocketsphinx";
|
||||
maintainers = with maintainers; [ jopejoe1 ];
|
||||
};
|
||||
})
|
57
pkgs/development/python-modules/pocketsphinx/default.nix
Normal file
57
pkgs/development/python-modules/pocketsphinx/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
cmake,
|
||||
cython,
|
||||
fetchFromGitHub,
|
||||
memory-profiler,
|
||||
ninja,
|
||||
pathspec,
|
||||
pocketsphinx,
|
||||
pytestCheckHook,
|
||||
scikit-build,
|
||||
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 = with lib; {
|
||||
description = "Small speech recognizer";
|
||||
homepage = "https://github.com/cmusphinx/pocketsphinx";
|
||||
changelog = "https://github.com/cmusphinx/pocketsphinx/blob/v${version}/NEWS";
|
||||
license = with licenses; [
|
||||
bsd2
|
||||
bsd3
|
||||
mit
|
||||
];
|
||||
maintainers = with maintainers; [ jopejoe1 ];
|
||||
};
|
||||
}
|
@ -10601,6 +10601,10 @@ self: super: with self; {
|
||||
|
||||
pocket = callPackage ../development/python-modules/pocket { };
|
||||
|
||||
pocketsphinx = callPackage ../development/python-modules/pocketsphinx {
|
||||
inherit (pkgs) pocketsphinx;
|
||||
};
|
||||
|
||||
podcastparser = callPackage ../development/python-modules/podcastparser { };
|
||||
|
||||
podcats = callPackage ../development/python-modules/podcats { };
|
||||
|
Loading…
Reference in New Issue
Block a user