From a1df13e2306803132f54511769412f746f1a9f7a Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 1 May 2025 21:56:24 +0200 Subject: [PATCH] python3Packages.pytest-postgresql-darwin: disable checkPhase on darwin This is because the checkPhase can't be run consistently on darwin due to a nix bug described in #371242. --- .../development/python-modules/pytest-postgresql/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytest-postgresql/default.nix b/pkgs/development/python-modules/pytest-postgresql/default.nix index c989f2748348..c5abbb07447b 100644 --- a/pkgs/development/python-modules/pytest-postgresql/default.nix +++ b/pkgs/development/python-modules/pytest-postgresql/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, pytestCheckHook, @@ -62,7 +63,9 @@ buildPythonPackage rec { "pytest_postgresql.executor" ]; - __darwinAllowLocalNetworking = true; + # Can't reliably run checkPhase on darwin because of nix bug, see: + # https://github.com/NixOS/nixpkgs/issues/371242 + doCheck = !stdenv.buildPlatform.isDarwin; meta = { homepage = "https://pypi.python.org/pypi/pytest-postgresql";