Merge pull request #20417 from KoviRobi/plover-move-out-of-python-packages.nix

plover: move out of python-packages.nix
This commit is contained in:
Frederik Rietdijk 2016-11-14 21:48:45 +01:00 committed by GitHub
commit 770e83ebf9
3 changed files with 28 additions and 27 deletions

View File

@ -0,0 +1,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 ];
}

View File

@ -14158,6 +14158,8 @@ in
gtksharp = gtk-sharp-2_0;
};
plover = callPackage ../applications/misc/plover { };
plugin-torture = callPackage ../applications/audio/plugin-torture { };
pmenu = callPackage ../applications/misc/pmenu { };

View File

@ -14878,33 +14878,6 @@ in {
};
};
plover = buildPythonPackage rec {
name = "plover-${version}";
version = "3.1.0";
disabled = !isPy27;
meta = {
description = "OpenSteno Plover stenography software";
maintainers = with maintainers; [ twey kovirobi ];
license = licenses.gpl2;
};
src = pkgs.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 self; [ pytest mock ];
propagatedBuildInputs = with self; [ six setuptools pyserial appdirs hidapi
wxPython xlib pkgs.wmctrl ];
};
pygal = buildPythonPackage rec {
version = "2.0.10";
name = "pygal-${version}";