Merge pull request #249775 from tjni/libtmux

python3.pkgs.libtmux: remove setuptools build dependency
This commit is contained in:
OTABI Tomoya 2023-08-18 10:34:39 +09:00 committed by GitHub
commit 20a431f6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
'';