about summary refs log tree commit diff
path: root/pkgs/applications/misc/plover/default.nix
blob: b8fa38268c385dfc4e43d4ef011ec9f0ba1ec0df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, python27Packages, wmctrl }:

python27Packages.buildPythonPackage rec {
  name = "plover-${version}";
  version = "3.1.0";

  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 = "1zdlgyjp93sfvk6by7rsh9hj4ijzplglrxpcpkcir6c3nq2bixl4";
  };

  # This is a fix for https://github.com/pypa/pip/issues/3624 causing regression https://github.com/pypa/pip/issues/3781
  postPatch = ''
    substituteInPlace setup.py --replace " in sys_platform" " == sys_platform"
    '';

  buildInputs = with python27Packages; [ pytest mock ];
  propagatedBuildInputs = with python27Packages; [ six setuptools pyserial appdirs hidapi
    wxPython xlib wmctrl ];
}