diff --git a/pkgs/by-name/py/pyprland/package.nix b/pkgs/by-name/py/pyprland/package.nix index 509225403b6b..2a7762fded35 100644 --- a/pkgs/by-name/py/pyprland/package.nix +++ b/pkgs/by-name/py/pyprland/package.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, + fetchpatch, python3Packages, nix-update-script, }: @@ -19,6 +20,16 @@ python3Packages.buildPythonApplication rec { hash = "sha256-rtAw6tdZY0BKb6Qjk/LHYYMB9nCPzkmw95wdjhJ191s="; }; + patches = [ + # Remove this patch from versions higher than 2.4.7-17. + # Fixes integration with pyprland 0.52.0+. + (fetchpatch { + url = "https://github.com/hyprland-community/pyprland/commit/21c0479a52df41f15bb798e28f67daab8b1ad0e3.patch"; + hash = "sha256-QwEGdraSZmz9goCBTKQLArqQse1TP8b188uiIISshWc="; + includes = [ "pyprland/plugins/pyprland.py" ]; + }) + ]; + nativeBuildInputs = with python3Packages; [ poetry-core ]; propagatedBuildInputs = with python3Packages; [ aiofiles ];