1{
2 buildPythonPackage,
3 fetchPypi,
4 setuptools,
5 numpy,
6 scikit-image,
7 lib,
8 opencv-python,
9}:
10
11buildPythonPackage rec {
12 pname = "imagecorruptions";
13 version = "1.1.2";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "044e173f24d5934899bdbf3596bfbec917e8083e507eed583ab217abebbe084d";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 numpy
25 scikit-image
26 opencv-python
27 ];
28
29 doCheck = false;
30 pythonImportsCheck = [ "imagecorruptions" ];
31
32 meta = with lib; {
33 homepage = "https://github.com/bethgelab/imagecorruptions";
34 description = "This package provides a set of image corruptions";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ rakesh4g ];
37 };
38}