2019-10-19 09:44:27 +00:00
|
|
|
{ stdenv, fetchurl, python27Packages, python36Packages, wmctrl,
|
|
|
|
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 12:41:18 +00:00
|
|
|
pname = "plover";
|
2018-03-22 17:18:32 +00:00
|
|
|
version = "3.1.1";
|
2016-11-14 20:36:59 +00:00
|
|
|
|
2018-03-22 17:18:32 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 20:36:59 +00:00
|
|
|
|
2019-03-14 17:17:17 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-03-22 17:18:32 +00:00
|
|
|
buildInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [
|
2019-10-09 11:42:00 +00: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
|
|
|
};
|
|
|
|
|
2019-10-19 09:44:27 +00:00
|
|
|
dev = with python36Packages; mkDerivationWith buildPythonPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "plover";
|
2018-05-12 22:37:42 +00:00
|
|
|
version = "4.0.0.dev8";
|
2018-03-22 17:18:32 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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";
|
2018-05-12 22:37:42 +00:00
|
|
|
sha256 = "1wxkmik1zyw5gqig5r0cas5v6f5408fbnximzw610rdisqy09rxp";
|
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 22:37:42 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
2019-10-09 11:55:49 +00:00
|
|
|
propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
|
2019-10-19 09:44:27 +00:00
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
2019-12-10 23:23:57 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
2018-03-22 17:18:32 +00:00
|
|
|
};
|
|
|
|
}
|