Commit f6281453 authored by XYenon's avatar XYenon
Browse files

python313Packages.pystray: support darwin

parent 430ce31b
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -3,15 +3,17 @@
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  gobject-introspection,
  setuptools,
  pillow,
  xlib,
  six,
  xvfb-run,
  setuptools,
  gobject-introspection,
  pygobject3,
  gtk3,
  stdenv,
  xlib,
  libayatana-appindicator,
  pyobjc-framework-Quartz,
  xvfb-run,
  pytest,
}:

@@ -48,22 +50,22 @@ buildPythonPackage rec {

  propagatedBuildInputs = [
    pillow
    xlib
    six
    pygobject3
    gtk3
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [
    xlib
    libayatana-appindicator
  ];
  ]
  ++ lib.optionals stdenv.isDarwin [ pyobjc-framework-Quartz ];

  nativeCheckInputs = [
    pytest
    xvfb-run
  ];
  nativeCheckInputs = [ pytest ] ++ lib.optionals stdenv.hostPlatform.isLinux [ xvfb-run ];

  checkPhase = ''
    runHook preCheck

    xvfb-run -s '-screen 0 800x600x24' pytest tests/menu_descriptor_tests.py
    ${lib.optionalString stdenv.hostPlatform.isLinux "xvfb-run -s '-screen 0 800x600x24' "}pytest tests/menu_descriptor_tests.py

    runHook postCheck
  '';
@@ -75,7 +77,7 @@ buildPythonPackage rec {
      gpl3Plus
      lgpl3Plus
    ];
    platforms = platforms.linux;
    platforms = platforms.all;
    maintainers = with maintainers; [ jojosch ];
  };
}