Loading pkgs/development/python-modules/dask-image/default.nix +24 −3 Original line number Diff line number Diff line { lib, buildPythonPackage, pythonOlder, fetchFromGitHub, # build-system setuptools, setuptools-scm, # dependencies dask, numpy, scipy, pandas, pims, # tests pyarrow, pytestCheckHook, scikit-image, }: Loading @@ -19,8 +25,6 @@ buildPythonPackage rec { version = "2024.5.3"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "dask"; repo = "dask-image"; Loading @@ -28,6 +32,11 @@ buildPythonPackage rec { hash = "sha256-kXCAqJ2Zgo/2Khvo2YcK+n4oGM219GyQ2Hsq9re1Lac="; }; postPatch = '' substituteInPlace dask_image/ndinterp/__init__.py \ --replace-fail "out_bounds.ptp(axis=1)" "np.ptp(out_bounds, axis=1)" ''; build-system = [ setuptools setuptools-scm Loading @@ -42,15 +51,27 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ pyarrow pytestCheckHook scikit-image ]; pythonImportsCheck = [ "dask_image" ]; disabledTests = [ # The following tests are from 'tests/test_dask_image/test_ndmeasure/test_find_objects.py' and # fail because of errrors on numpy slices # AttributeError: 'str' object has no attribute 'start' "test_find_objects" "test_3d_find_objects" # AssertionError (comparing slices) "test_find_objects_with_empty_chunks" ]; meta = { description = "Distributed image processing"; homepage = "https://github.com/dask/dask-image"; changelog = "https://github.com/dask/dask-image/releases/tag/v${version}"; license = lib.licenses.bsdOriginal; maintainers = with lib.maintainers; [ GaetanLepage ]; }; Loading Loading
pkgs/development/python-modules/dask-image/default.nix +24 −3 Original line number Diff line number Diff line { lib, buildPythonPackage, pythonOlder, fetchFromGitHub, # build-system setuptools, setuptools-scm, # dependencies dask, numpy, scipy, pandas, pims, # tests pyarrow, pytestCheckHook, scikit-image, }: Loading @@ -19,8 +25,6 @@ buildPythonPackage rec { version = "2024.5.3"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "dask"; repo = "dask-image"; Loading @@ -28,6 +32,11 @@ buildPythonPackage rec { hash = "sha256-kXCAqJ2Zgo/2Khvo2YcK+n4oGM219GyQ2Hsq9re1Lac="; }; postPatch = '' substituteInPlace dask_image/ndinterp/__init__.py \ --replace-fail "out_bounds.ptp(axis=1)" "np.ptp(out_bounds, axis=1)" ''; build-system = [ setuptools setuptools-scm Loading @@ -42,15 +51,27 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ pyarrow pytestCheckHook scikit-image ]; pythonImportsCheck = [ "dask_image" ]; disabledTests = [ # The following tests are from 'tests/test_dask_image/test_ndmeasure/test_find_objects.py' and # fail because of errrors on numpy slices # AttributeError: 'str' object has no attribute 'start' "test_find_objects" "test_3d_find_objects" # AssertionError (comparing slices) "test_find_objects_with_empty_chunks" ]; meta = { description = "Distributed image processing"; homepage = "https://github.com/dask/dask-image"; changelog = "https://github.com/dask/dask-image/releases/tag/v${version}"; license = lib.licenses.bsdOriginal; maintainers = with lib.maintainers; [ GaetanLepage ]; }; Loading