depot/third_party/nixpkgs/pkgs/development/python-modules/dask-image/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

54 lines
916 B
Nix

{ lib
, stdenv
, buildPythonPackage
, dask
, fetchPypi
, numpy
, pims
, pytestCheckHook
, pythonOlder
, scikitimage
, scipy
}:
buildPythonPackage rec {
pname = "dask-image";
version = "2021.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Nb5JYmvQHD44khKBJqJ9XuMmahmKjjx+MNWervcS/Pk=";
};
propagatedBuildInputs = [
dask
numpy
scipy
pims
];
checkInputs = [
pytestCheckHook
scikitimage
];
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 ];
};
}