Commit 95fbedec authored by oxalica's avatar oxalica Committed by Weijia Wang
Browse files

solaar: 1.1.13 -> 1.1.14 and enable tests

parent 576aac57
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -15,13 +15,13 @@
# instead of adding this to `services.udev.packages` on NixOS,
python3Packages.buildPythonApplication rec {
  pname = "solaar";
  version = "1.1.13";
  version = "1.1.14";

  src = fetchFromGitHub {
    owner = "pwr-Solaar";
    repo = "Solaar";
    tag = version;
    hash = "sha256-sYJrVAeZi0a7yD0i/zIIxcu9X/c5HvgoI/n50eXD47s=";
    hash = "sha256-cAM4h0OOXxItSf0Gb9PfHn385FXMKwvIUuYTrjgABwA=";
  };

  outputs = [
@@ -49,9 +49,16 @@ python3Packages.buildPythonApplication rec {
    pygobject3
    pyudev
    pyyaml
    typing-extensions
    xlib
  ];

  nativeCheckInputs = with python3Packages; [
    pytestCheckHook
    pytest-mock
    pytest-cov
  ];

  # the -cli symlink is just to maintain compabilility with older versions where
  # there was a difference between the GUI and CLI versions.
  postInstall = ''
@@ -66,10 +73,10 @@ python3Packages.buildPythonApplication rec {
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';

  # no tests
  doCheck = false;

  pythonImportsCheck = [ "solaar" ];
  pythonImportsCheck = [
    "solaar"
    "solaar.gtk"
  ];

  meta = with lib; {
    description = "Linux devices manager for the Logitech Unifying Receiver";