nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 63 lines 1.4 kB view raw
1{ 2 lib, 3 config, 4 fetchFromGitHub, 5 python3Packages, 6 wmctrl, 7 qtbase, 8 mkDerivationWith, 9}: 10 11{ 12 dev = 13 with python3Packages; 14 mkDerivationWith buildPythonPackage rec { 15 pname = "plover"; 16 version = "4.0.2"; 17 format = "setuptools"; 18 19 meta = with lib; { 20 broken = stdenv.hostPlatform.isDarwin; 21 description = "OpenSteno Plover stenography software"; 22 maintainers = with maintainers; [ 23 twey 24 kovirobi 25 ]; 26 license = licenses.gpl2; 27 }; 28 29 src = fetchFromGitHub { 30 owner = "openstenoproject"; 31 repo = "plover"; 32 tag = "v${version}"; 33 sha256 = "sha256-VpQT25bl8yPG4J9IwLkhSkBt31Y8BgPJdwa88WlreA8="; 34 }; 35 36 # I'm not sure why we don't find PyQt5 here but there's a similar 37 # sed on many of the platforms Plover builds for 38 postPatch = "sed -i /PyQt5/d setup.cfg"; 39 40 nativeCheckInputs = [ 41 pytest 42 mock 43 ]; 44 propagatedBuildInputs = [ 45 babel 46 pyqt5 47 xlib 48 pyserial 49 appdirs 50 wcwidth 51 setuptools 52 ]; 53 54 dontWrapQtApps = true; 55 56 preFixup = '' 57 makeWrapperArgs+=("''${qtWrapperArgs[@]}") 58 ''; 59 }; 60} 61// lib.optionalAttrs config.allowAliases { 62 stable = throw "plover.stable was removed because it used Python 2. Use plover.dev instead."; # added 2022-06-05 63}