diff --git a/pkgs/development/python-modules/pywinbox/default.nix b/pkgs/development/python-modules/pywinbox/default.nix index 9815316daf3a..63d18a832aa7 100644 --- a/pkgs/development/python-modules/pywinbox/default.nix +++ b/pkgs/development/python-modules/pywinbox/default.nix @@ -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;