Merge pull request #175774 from fabaff/dask-image-older

python310Packages.dask-image: disable on older Python releases
This commit is contained in:
Fabian Affolter 2022-06-01 20:42:15 +02:00 committed by GitHub
commit 0c7d97ae83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,41 +1,54 @@
{ stdenv
, lib
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, dask
, scipy
, fetchPypi
, numpy
, pims
, scikitimage
, pytestCheckHook
, pythonOlder
, scikitimage
, scipy
}:
buildPythonPackage rec {
version = "2021.12.0";
pname = "dask-image";
version = "2021.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "35be49626bd01c3e3892128126a27d5ee3266a198a8e3c7e30d59eaef712fcf9";
hash = "sha256-Nb5JYmvQHD44khKBJqJ9XuMmahmKjjx+MNWervcS/Pk=";
};
propagatedBuildInputs = [ dask scipy pims ];
prePatch = ''
substituteInPlace setup.cfg --replace "--flake8" ""
'';
propagatedBuildInputs = [
dask
numpy
scipy
pims
];
checkInputs = [
pytestCheckHook
scikitimage
];
pythonImportsCheck = [ "dask_image" ];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--flake8" ""
'';
pythonImportsCheck = [
"dask_image"
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
homepage = "https://github.com/dask/dask-image";
description = "Distributed image processing";
homepage = "https://github.com/dask/dask-image";
license = licenses.bsdOriginal;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}