diff --git a/pkgs/development/python-modules/gmpy2/default.nix b/pkgs/development/python-modules/gmpy2/default.nix index 7bf82ed02b2d..58f4cc08f672 100644 --- a/pkgs/development/python-modules/gmpy2/default.nix +++ b/pkgs/development/python-modules/gmpy2/default.nix @@ -51,11 +51,17 @@ buildPythonPackage rec { mpmath ]; - disabledTests = lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # issue with some overflow logic - "test_mpz_to_bytes" - "test_mpz_from_bytes" - ]; + disabledTests = + lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # issue with some overflow logic + "test_mpz_to_bytes" + "test_mpz_from_bytes" + ] + ++ lib.optionals stdenv.isDarwin [ + # TypeError: mpq() requires numeric or string argument + # not sure why it only fails on Darwin + "test_mpq_from_Decimal" + ]; pythonImportsCheck = [ "gmpy2" ];