nixpkgs/pkgs/applications/misc/plover/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Nix
Raw Normal View History

2021-12-13 14:36:07 +00:00
{ lib, fetchFromGitHub, python27Packages, python3Packages, wmctrl,
qtbase, mkDerivationWith }:
2018-03-22 17:18:32 +00:00
{
2022-06-05 19:08:51 +00:00
stable = throw "plover.stable was removed because it used Python 2. Use plover.dev instead."; # added 2022-06-05
dev = with python3Packages; mkDerivationWith buildPythonPackage rec {
pname = "plover";
version = "4.0.0.dev10";
2018-03-22 17:18:32 +00:00
meta = with lib; {
broken = stdenv.isDarwin;
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";
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
2018-03-22 17:18:32 +00:00
};
}