python310Packages.scikitimage: 0.18.3 -> 0.19.3

Also marked `python3Packages.imgaug` as broken.
This commit is contained in:
Alexander Kiselyov 2022-08-20 18:35:05 +03:00
parent 073a8eeb0f
commit 1d143536d3
2 changed files with 8 additions and 5 deletions

View File

@ -77,5 +77,8 @@ buildPythonPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai rakesh4g ]; maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
platforms = platforms.linux; platforms = platforms.linux;
# Scikit-image 0.19 update broke API, see https://github.com/scikit-image/scikit-image/releases/tag/v0.19.0
# and https://github.com/scikit-image/scikit-image/issues/6093
broken = lib.versionAtLeast scikitimage.version "0.19";
}; };
} }

View File

@ -4,6 +4,7 @@
, buildPythonPackage , buildPythonPackage
, python , python
, cython , cython
, pythran
, numpy , numpy
, scipy , scipy
, matplotlib , matplotlib
@ -16,25 +17,24 @@
, imageio , imageio
, tifffile , tifffile
, pytestCheckHook , pytestCheckHook
, doCheck ? false
}: }:
let let
installedPackageRoot = "${builtins.placeholder "out"}/${python.sitePackages}"; installedPackageRoot = "${builtins.placeholder "out"}/${python.sitePackages}";
self = buildPythonPackage rec { self = buildPythonPackage rec {
pname = "scikit-image"; pname = "scikit-image";
version = "0.18.3"; version = "0.19.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0a2h3bw5rkk23k4r04qc9maccg00nddssd7lfsps8nhp5agk1vyh"; sha256 = "sha256-zvXgZdvYycFbbMsBFSqMDzLanEtF9+JuVSQ3AM8/LQk=";
}; };
patches = [ ./add-testing-data.patch ]; patches = [ ./add-testing-data.patch ];
nativeBuildInputs = [ cython ]; nativeBuildInputs = [ cython pythran ];
propagatedBuildInputs = [ propagatedBuildInputs = [
cloudpickle cloudpickle
@ -51,7 +51,7 @@ let
]; ];
# test suite is very cpu intensive, move to passthru.tests # test suite is very cpu intensive, move to passthru.tests
inherit doCheck; doCheck = false;
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];
# (1) The package has cythonized modules, whose .so libs will appear only in the wheel, i.e. in nix store; # (1) The package has cythonized modules, whose .so libs will appear only in the wheel, i.e. in nix store;