1{ lib
2, stdenv
3, buildPythonPackage
4, dask
5, fetchPypi
6, numpy
7, pims
8, pytestCheckHook
9, pythonOlder
10, scikit-image
11, scipy
12}:
13
14buildPythonPackage rec {
15 pname = "dask-image";
16 version = "2023.8.1";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-XpqJhbBSehtZQsan50Tg5X0mTiIscFjwW664HDdNBLY=";
24 };
25
26 propagatedBuildInputs = [
27 dask
28 numpy
29 scipy
30 pims
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 scikit-image
36 ];
37
38 postPatch = ''
39 substituteInPlace setup.cfg \
40 --replace "--flake8" ""
41 '';
42
43 pythonImportsCheck = [
44 "dask_image"
45 ];
46
47 meta = with lib; {
48 description = "Distributed image processing";
49 homepage = "https://github.com/dask/dask-image";
50 license = licenses.bsdOriginal;
51 maintainers = with maintainers; [ ];
52 };
53}