2020-05-15 21:57:56 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glibcLocales
|
|
|
|
, gobject-introspection
|
|
|
|
, gettext
|
|
|
|
, pango
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
, atk
|
|
|
|
, libnotify
|
|
|
|
, libappindicator-gtk3
|
|
|
|
, gst_all_1
|
|
|
|
, makeWrapper
|
|
|
|
, picotts
|
|
|
|
, sox
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gSpeech";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.10.1";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mothsart";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1i0jwgxcn94nsi7c0ad0w77y04g04ka2szijzfqzqfnacdmdyrfc";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
gobject-introspection
|
|
|
|
pango
|
|
|
|
gdk-pixbuf
|
|
|
|
atk
|
|
|
|
gettext
|
|
|
|
libnotify
|
|
|
|
libappindicator-gtk3
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glibcLocales
|
|
|
|
gtk3
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
2020-09-25 04:45:31 +00:00
|
|
|
wrapProgram $out/bin/gspeech --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
|
|
|
|
wrapProgram $out/bin/gspeech-cli --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A minimal GUI for the Text To Speech 'Svox Pico'. Read clipboard or selected text in different languages and manage it : pause, stop, replay";
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://github.com/mothsART/gSpeech";
|
|
|
|
maintainers = with maintainers; [ mothsart ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|