2021-12-24 04:21:11 +00:00
|
|
|
{ lib, fetchFromGitHub, python27Packages, python3Packages, wmctrl,
|
2020-04-24 23:36:52 +00:00
|
|
|
qtbase, mkDerivationWith }:
|
|
|
|
|
|
|
|
{
|
|
|
|
stable = with python27Packages; buildPythonPackage rec {
|
|
|
|
pname = "plover";
|
|
|
|
version = "3.1.1";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "OpenSteno Plover stenography software";
|
|
|
|
maintainers = with maintainers; [ twey kovirobi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstenoproject";
|
|
|
|
repo = "plover";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-LIhTwHMphg+xTR9NKvjAZ6p0mmqPNcZd9C4cgnenmYQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six setuptools pyserial appdirs hidapi wxPython xlib wmctrl dbus-python
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
dev = with python3Packages; mkDerivationWith buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "plover";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "4.0.0.dev10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "OpenSteno Plover stenography software";
|
|
|
|
maintainers = with maintainers; [ twey kovirobi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstenoproject";
|
|
|
|
repo = "plover";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-oJ7+R3ZWhUbNTTAw1AfMg2ur8vW1XEbsa5FgSTam1Ns=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# I'm not sure why we don't find PyQt5 here but there's a similar
|
|
|
|
# sed on many of the platforms Plover builds for
|
|
|
|
postPatch = "sed -i /PyQt5/d setup.cfg";
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|