2022-10-30 15:09:59 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, wmctrl, qtbase, mkDerivationWith }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
{
|
2022-06-16 17:23:12 +00:00
|
|
|
stable = throw "plover.stable was removed because it used Python 2. Use plover.dev instead."; # added 2022-06-05
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
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";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest mock ];
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [ babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|