python3Packages.pywinbox: unbreak on darwin (#511728)

This commit is contained in:
Yohann Boniface
2026-04-20 21:30:39 +00:00
committed by GitHub
@@ -36,6 +36,12 @@ buildPythonPackage (finalAttrs: {
pyobjc-framework-Cocoa
];
# It's called pyobjc-core instead of pyobjc in nixpkgs.
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace setup.py \
--replace-fail 'pyobjc' 'pyobjc-core'
'';
# requires x session (use ewmhlib)
pythonImportsCheck = [ ];
doCheck = false;