2021-12-13 14:36:07 +00:00
|
|
|
{ lib, fetchFromGitHub, python27Packages, python3Packages, wmctrl,
|
2019-10-19 10:44:27 +01:00
|
|
|
qtbase, mkDerivationWith }:
|
2016-11-14 20:36:59 +00:00
|
|
|
|
2018-03-22 17:18:32 +00:00
|
|
|
{
|
|
|
|
stable = with python27Packages; buildPythonPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "plover";
|
2018-03-22 17:18:32 +00:00
|
|
|
version = "3.1.1";
|
2016-11-14 20:36:59 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-22 17:18:32 +00:00
|
|
|
description = "OpenSteno Plover stenography software";
|
|
|
|
maintainers = with maintainers; [ twey kovirobi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
2021-12-13 14:36:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstenoproject";
|
|
|
|
repo = "plover";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-LIhTwHMphg+xTR9NKvjAZ6p0mmqPNcZd9C4cgnenmYQ=";
|
2018-03-22 17:18:32 +00:00
|
|
|
};
|
2016-11-14 20:36:59 +00:00
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2018-03-22 17:18:32 +00:00
|
|
|
buildInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [
|
2019-10-09 12:42:00 +01:00
|
|
|
six setuptools pyserial appdirs hidapi wxPython xlib wmctrl dbus-python
|
2018-03-22 17:18:32 +00:00
|
|
|
];
|
2016-11-14 20:36:59 +00:00
|
|
|
};
|
|
|
|
|
2021-08-30 00:22:38 +01:00
|
|
|
dev = with python3Packages; mkDerivationWith buildPythonPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "plover";
|
2021-08-30 00:22:38 +01:00
|
|
|
version = "4.0.0.dev10";
|
2018-03-22 17:18:32 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-22 17:18:32 +00:00
|
|
|
description = "OpenSteno Plover stenography software";
|
|
|
|
maintainers = with maintainers; [ twey kovirobi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
2021-12-13 14:36:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstenoproject";
|
|
|
|
repo = "plover";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-oJ7+R3ZWhUbNTTAw1AfMg2ur8vW1XEbsa5FgSTam1Ns=";
|
2018-03-22 17:18:32 +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";
|
|
|
|
|
2018-05-12 23:37:42 +01:00
|
|
|
checkInputs = [ pytest mock ];
|
2019-10-09 12:55:49 +01:00
|
|
|
propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
|
2019-10-19 10:44:27 +01:00
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
2019-12-10 23:23:57 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
2018-03-22 17:18:32 +00:00
|
|
|
};
|
|
|
|
}
|