Unverified Commit 53bbdc1a authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

python311Packages.pystray: 0.19.2 -> 0.19.5

parent 8a1be53c
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  pillow,
  xlib,
  six,
@@ -15,19 +16,28 @@

buildPythonPackage rec {
  pname = "pystray";
  version = "0.19.2";
  format = "pyproject";
  version = "0.19.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "moses-palmer";
    repo = "pystray";
    rev = "v${version}";
    hash = "sha256-8B178MSe4ujlnGBmQhIu+BoAh1doP9V5cL0ermLQTvs=";
    hash = "sha256-CZhbaXwKFrRBEomzfFPMQdMkTOl5lbgI64etfDRiRu4=";
  };

  patches = [
    # fix test_menu_construct_from_none test case
    # https://github.com/moses-palmer/pystray/pull/133
    (fetchpatch {
      url = "https://github.com/moses-palmer/pystray/commit/813007e3034d950d93a2f3e5b029611c3c9c98ad.patch";
      hash = "sha256-m2LfZcWXSfgxb73dac21VDdMDVz3evzcCz5QjdnfM1U=";
    })
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "'sphinx >=1.3.1'" ""
      --replace-fail "'sphinx >=1.3.1'" ""
  '';

  nativeBuildInputs = [