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-17 15:51:14 -06:00
parent 511dd75c59
commit 41d5756470
@@ -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";