diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index a1f567adcd59..d24928092f92 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -11,7 +11,8 @@ , pythonOlder , typing-extensions # dependencies for building documentation. -, withDocs ? (stdenv.hostPlatform == stdenv.buildPlatform) +# docs fail to build in Darwin sandbox: https://github.com/samuelcolvin/pydantic/issues/4245 +, withDocs ? (stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.isDarwin) , ansi2html , markdown-include , mkdocs