From 45be794583088ee1e580fdeabd6348dea476ae1e Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 14 Nov 2023 23:01:46 -0500 Subject: [PATCH] sourcehut: fix build on Darwin Fix test failures by disabline tests that use multiprocessing. On Darwin, multiprocessing uses `spawn` instead of `fork` by default, resulting in test failures due to pickling errors. --- .../applications/version-management/sourcehut/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/sourcehut/default.nix b/pkgs/applications/version-management/sourcehut/default.nix index 37840f486dc5..8682057b7838 100644 --- a/pkgs/applications/version-management/sourcehut/default.nix +++ b/pkgs/applications/version-management/sourcehut/default.nix @@ -1,4 +1,6 @@ -{ python3 +{ lib +, stdenv +, python3 , callPackage , recurseIntoAttrs , nixosTests @@ -35,7 +37,9 @@ let hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA="; }; nativeCheckInputs = with super; [ pytestCheckHook mock ]; - disabledTestPaths = []; + disabledTestPaths = [] + # Disable incompatible tests on Darwin. + ++ lib.optionals stdenv.isDarwin [ "test/aaa_profiling" ]; }); flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (oldAttrs: rec {