git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #20417 from KoviRobi/plover-move-out-of-python-packages.nix

plover: move out of python-packages.nix

commit770e83ebf9bfcc2ee3d02c1faa9a8d8d937e5460 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateMon 14 Nov 2016, 21:48 (10 years ago) parent245adb45a06658
3 files changed+28−27
pkgs/applications/misc/plover/default.nix+26 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix−27
pkgs/applications/misc/plover/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, fetchurl, python27Packages, wmctrl }:
2+
3+python27Packages.buildPythonPackage rec {
4+ name = "plover-${version}";
5+ version = "3.1.0";
6+
7+ meta = with stdenv.lib; {
8+ description = "OpenSteno Plover stenography software";
9+ maintainers = with maintainers; [ twey kovirobi ];
10+ license = licenses.gpl2;
11+ };
12+
13+ src = fetchurl {
14+ url = "https://github.com/openstenoproject/plover/archive/v${version}.tar.gz";
15+ sha256 = "1zdlgyjp93sfvk6by7rsh9hj4ijzplglrxpcpkcir6c3nq2bixl4";
16+ };
17+
18+ # This is a fix for https://github.com/pypa/pip/issues/3624 causing regression https://github.com/pypa/pip/issues/3781
19+ postPatch = ''
20+ substituteInPlace setup.py --replace " in sys_platform" " == sys_platform"
21+ '';
22+
23+ buildInputs = with python27Packages; [ pytest mock ];
24+ propagatedBuildInputs = with python27Packages; [ six setuptools pyserial appdirs hidapi
25+ wxPython xlib wmctrl ];
26+}
pkgs/top-level/all-packages.nix+2
@@ -14158,6 +14158,8 @@ in
1415814158 gtksharp = gtk-sharp-2_0;
1415914159 };
1416014160
14161+ plover = callPackage ../applications/misc/plover { };
14162+
1416114163 plugin-torture = callPackage ../applications/audio/plugin-torture { };
1416214164
1416314165 pmenu = callPackage ../applications/misc/pmenu { };
pkgs/top-level/python-packages.nix−27
@@ -14878,33 +14878,6 @@ in {
1487814878 };
1487914879 };
1488014880
14881−
14882− plover = buildPythonPackage rec {
14883− name = "plover-${version}";
14884− version = "3.1.0";
14885− disabled = !isPy27;
14886−
14887− meta = {
14888− description = "OpenSteno Plover stenography software";
14889− maintainers = with maintainers; [ twey kovirobi ];
14890− license = licenses.gpl2;
14891− };
14892−
14893− src = pkgs.fetchurl {
14894− url = "https://github.com/openstenoproject/plover/archive/v${version}.tar.gz";
14895− sha256 = "1zdlgyjp93sfvk6by7rsh9hj4ijzplglrxpcpkcir6c3nq2bixl4";
14896− };
14897−
14898− # This is a fix for https://github.com/pypa/pip/issues/3624 causing regression https://github.com/pypa/pip/issues/3781
14899− postPatch = ''
14900− substituteInPlace setup.py --replace " in sys_platform" " == sys_platform"
14901− '';
14902−
14903− buildInputs = with self; [ pytest mock ];
14904− propagatedBuildInputs = with self; [ six setuptools pyserial appdirs hidapi
14905− wxPython xlib pkgs.wmctrl ];
14906− };
14907−
1490814881 pygal = buildPythonPackage rec {
1490914882 version = "2.0.10";
1491014883 name = "pygal-${version}";