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.
This commit is contained in:
Randy Eckenrode 2023-11-14 23:01:46 -05:00
parent ac45c11ddb
commit 45be794583
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -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 {