kitty: refactor add patch to solve darwin test errors

This commit is contained in:
leiserfg
2025-03-11 15:39:10 +01:00
parent 71b99a1d14
commit 02e08e63e0
2 changed files with 12 additions and 15 deletions
-13
View File
@@ -1,13 +0,0 @@
diff --git a/setup.py b/setup.py
index 9e9c3f177..8183a3b69 100755
--- a/setup.py
+++ b/setup.py
@@ -1778,7 +1778,7 @@ def repl(name: str, raw: str, defval: Union[str, float, FrozenSet[str]], val: Un
return raw
tname = type(defval).__name__
if tname == 'frozenset':
- tname = 'typing.FrozenSet[str]'
+ tname = 'frozenset[str]'
prefix = f'{name}: {tname} ='
nraw = raw.replace(f'{prefix} {defval!r}', f'{prefix} {val!r}', 1)
if nraw == raw:
+12 -2
View File
@@ -50,6 +50,7 @@
makeBinaryWrapper,
autoSignDarwinBinariesHook,
cairo,
fetchpatch,
}:
with python3Packages;
@@ -159,8 +160,17 @@ buildPythonApplication rec {
# OSError: master_fd is in error condition
./disable-test_ssh_bootstrap_with_different_launchers.patch
# Temporary fix for setup.py until it's merged upstream
./fix_setup.patch
# Remove after 0.40.1
(fetchpatch {
url = "https://github.com/kovidgoyal/kitty/commit/6171ca6.patch";
hash = "sha256-OBB0YcgEYgw3Jcg+Dgus6rwQ4gGL6GMr6pd7m9CGq9k=";
})
(fetchpatch {
url = "https://github.com/kovidgoyal/kitty/commit/8cbdd003e2.patch";
hash = "sha256-pKIJIqIdPfB4kQ6FtpYDumpgjJkMxoLT8fKzfgWYJnw=";
})
];
hardeningDisable = [