diff --git a/pkgs/development/python-modules/libtmux/default.nix b/pkgs/development/python-modules/libtmux/default.nix index f27a5ac6e221..9382ccd36b63 100644 --- a/pkgs/development/python-modules/libtmux/default.nix +++ b/pkgs/development/python-modules/libtmux/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , buildPythonPackage , poetry-core , pytest-rerunfailures @@ -22,6 +23,15 @@ buildPythonPackage rec { hash = "sha256-tz7Pynm/xHx2X3QjXkvFlX6sVlsVKqrsS1CVmqlqfj0="; }; + patches = [ + # https://github.com/tmux-python/libtmux/pull/493 + (fetchpatch { + name = "remove-setuptools.patch"; + url = "https://github.com/tmux-python/libtmux/commit/aa3a1e2015ade73129191ad04146ce52765d478c.patch"; + hash = "sha256-p3KMktd6eG9/lRK+DdBvDtSwhI+sV2RQfBAuElMk8tQ="; + }) + ]; + postPatch = '' sed -i '/addopts/d' setup.cfg '';