2021-12-13 15:36:07 +01:00
|
|
|
{ lib, fetchFromGitHub, python27Packages, python3Packages, wmctrl,
|
2019-10-19 11:44:27 +02:00
|
|
|
qtbase, mkDerivationWith }:
|
2016-11-14 21:36:59 +01:00
|
|
|
|
2018-03-22 18:18:32 +01:00
|
|
|
{
|
2022-06-05 21:08:51 +02:00
|
|
|
stable = throw "plover.stable was removed because it used Python 2. Use plover.dev instead."; # added 2022-06-05
|
2016-11-14 21:36:59 +01:00
|
|
|
|
2021-08-30 01:22:38 +02:00
|
|
|
dev = with python3Packages; mkDerivationWith buildPythonPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "plover";
|
2021-08-30 01:22:38 +02:00
|
|
|
version = "4.0.0.dev10";
|
2018-03-22 18:18:32 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-28 15:28:44 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2018-03-22 18:18:32 +01:00
|
|
|
description = "OpenSteno Plover stenography software";
|
|
|
|
maintainers = with maintainers; [ twey kovirobi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
2021-12-13 15:36:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstenoproject";
|
|
|
|
repo = "plover";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-oJ7+R3ZWhUbNTTAw1AfMg2ur8vW1XEbsa5FgSTam1Ns=";
|
2018-03-22 18:18:32 +01: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-13 00:37:42 +02:00
|
|
|
checkInputs = [ pytest mock ];
|
2022-05-09 01:53:28 +02:00
|
|
|
propagatedBuildInputs = [ babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
|
2019-10-19 11:44:27 +02:00
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
2019-12-11 00:23:57 +01:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
2018-03-22 18:18:32 +01:00
|
|
|
};
|
|
|
|
}
|