2020-02-14 07:27:53 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, scikitimage
|
2021-01-25 08:26:54 +00:00
|
|
|
, lib
|
2020-02-14 07:27:53 +00:00
|
|
|
, opencv3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "imagecorruptions";
|
2020-12-14 12:12:22 +00:00
|
|
|
version = "1.1.2";
|
2020-02-14 07:27:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-14 12:12:22 +00:00
|
|
|
sha256 = "044e173f24d5934899bdbf3596bfbec917e8083e507eed583ab217abebbe084d";
|
2020-02-14 07:27:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'opencv-python >= 3.4.5'," ""
|
|
|
|
'';
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-02-14 07:27:53 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scikitimage
|
|
|
|
opencv3
|
|
|
|
];
|
|
|
|
|
2021-02-16 00:25:38 +00:00
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "imagecorruptions" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bethgelab/imagecorruptions";
|
2020-02-14 07:27:53 +00:00
|
|
|
description = "This package provides a set of image corruptions";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
}
|