From 18e60b8a14b2689c346ecbed39c85075f390783c Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 8 Aug 2023 09:39:10 -0700 Subject: [PATCH] python3.pkgs.watchfiles: fix sandbox darwin build --- pkgs/development/python-modules/watchfiles/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/watchfiles/default.nix b/pkgs/development/python-modules/watchfiles/default.nix index b644571b9e3f..3f75354376dd 100644 --- a/pkgs/development/python-modules/watchfiles/default.nix +++ b/pkgs/development/python-modules/watchfiles/default.nix @@ -53,6 +53,11 @@ buildPythonPackage rec { anyio ]; + # Tests need these permissions in order to use the FSEvents API on macOS. + sandboxProfile = '' + (allow mach-lookup (global-name "com.apple.FSEvents")) + ''; + nativeCheckInputs = [ dirty-equals pytest-mock