2021-08-30 01:22:38 +02:00
|
|
|
{ lib, fetchurl, 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
|
|
|
{
|
|
|
|
stable = with python27Packages; buildPythonPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "plover";
|
2018-03-22 18:18:32 +01:00
|
|
|
version = "3.1.1";
|
2016-11-14 21:36:59 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-03-22 18:18:32 +01:00
|
|
|
description = "OpenSteno Plover stenography software";
|
|
|
|
maintainers = with maintainers; [ twey kovirobi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/openstenoproject/plover/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1hdg5491phx6svrxxsxp8v6n4b25y7y4wxw7x3bxlbyhaskgj53r";
|
|
|
|
};
|
2016-11-14 21:36:59 +01:00
|
|
|
|
2021-06-03 12:09:11 +02:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2018-03-22 18:18:32 +01:00
|
|
|
buildInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [
|
2019-10-09 13:42:00 +02:00
|
|
|
six setuptools pyserial appdirs hidapi wxPython xlib wmctrl dbus-python
|
2018-03-22 18:18:32 +01:00
|
|
|
];
|
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; {
|
2018-03-22 18:18:32 +01:00
|
|
|
description = "OpenSteno Plover stenography software";
|
|
|
|
maintainers = with maintainers; [ twey kovirobi ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/openstenoproject/plover/archive/v${version}.tar.gz";
|
2021-08-30 01:22:38 +02:00
|
|
|
sha256 = "sha256-Eun+ZgmOIjYw6FS/2OGoBvYh52U/Ue0+NtIqrvV2Tqc=";
|
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 ];
|
2019-10-09 13:55:49 +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
|
|
|
};
|
|
|
|
}
|