nixpkgs/pkgs/development/python-modules/dask-image/default.nix
Martin Weinelt cddb66d655
python310Packages.scikit-image: rename from scikitimage
to match the pname and create an alias for the former name.
2023-05-14 13:04:10 +02:00

55 lines
923 B
Nix

{ lib
, stdenv
, buildPythonPackage
, dask
, fetchPypi
, numpy
, pims
, pytestCheckHook
, pythonOlder
, scikit-image
, scipy
}:
buildPythonPackage rec {
pname = "dask-image";
version = "2022.9.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-8SPf0Wp9FcdmYqasFHeFCe1e7ZtJT0Mi5ZRemxWSNUc=";
};
propagatedBuildInputs = [
dask
numpy
scipy
pims
];
nativeCheckInputs = [
pytestCheckHook
scikit-image
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--flake8" ""
'';
pythonImportsCheck = [
"dask_image"
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
description = "Distributed image processing";
homepage = "https://github.com/dask/dask-image";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ costrouc ];
};
}