python312Packages.dask-ml: fix darwin build

This commit is contained in:
Gaetan Lepage 2024-11-10 21:47:08 +01:00
parent 783f44cd4e
commit d1cae02bdf

View File

@ -1,12 +1,15 @@
{ {
lib, lib,
stdenv,
buildPythonPackage, buildPythonPackage,
pythonOlder,
fetchFromGitHub, fetchFromGitHub,
# build-system
hatch-vcs, hatch-vcs,
hatchling, hatchling,
setuptools-scm, setuptools-scm,
dask,
# dependencies
dask-expr, dask-expr,
dask-glm, dask-glm,
distributed, distributed,
@ -17,6 +20,9 @@
pandas, pandas,
scikit-learn, scikit-learn,
scipy, scipy,
dask,
# tests
pytest-mock, pytest-mock,
pytestCheckHook, pytestCheckHook,
}: }:
@ -26,8 +32,6 @@ buildPythonPackage rec {
version = "2024.4.4"; version = "2024.4.4";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dask"; owner = "dask";
repo = "dask-ml"; repo = "dask-ml";
@ -66,11 +70,19 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTestPaths = [ disabledTestPaths =
# AttributeError: 'csr_matrix' object has no attribute 'A' [
# Fixed in https://github.com/dask/dask-ml/pull/996 # AttributeError: 'csr_matrix' object has no attribute 'A'
"tests/test_svd.py" # Fixed in https://github.com/dask/dask-ml/pull/996
]; "tests/test_svd.py"
]
++ lib.optionals stdenv.isDarwin [
# RuntimeError: Not enough arguments provided: missing keys
"tests/model_selection/test_hyperband.py"
"tests/model_selection/test_incremental.py"
"tests/model_selection/test_incremental_warns.py"
"tests/model_selection/test_successive_halving.py"
];
disabledTests = [ disabledTests = [
# Flaky: `Arrays are not almost equal to 3 decimals` (although values do actually match) # Flaky: `Arrays are not almost equal to 3 decimals` (although values do actually match)