python3Packages.maxminddb: fix build on Darwin

The multiprocessing tests don’t work on Darwin presumably because it
uses the spawn start method instead of fork. Disable those tests to
allow maxminddb to build on Darwin again.
This commit is contained in:
Randy Eckenrode 2023-07-16 19:20:08 -06:00
parent 511dd75c59
commit 41d5756470
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -31,6 +31,10 @@ buildPythonPackage rec {
"maxminddb"
];
# The multiprocessing tests fail on Darwin because multiprocessing uses spawn instead of fork,
# resulting in an exception when it cant pickle the `lookup` local function.
disabledTests = lib.optionals stdenv.isDarwin [ "multiprocessing" ];
meta = with lib; {
description = "Reader for the MaxMind DB format";
homepage = "https://github.com/maxmind/MaxMind-DB-Reader-python";