summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/imagecorruptions/default.nix
blob: c55b05e98510e54d8b19a2dea1700aa169e440eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  buildPythonPackage,
  fetchPypi,
  setuptools,
  numpy,
  scikit-image,
  lib,
  opencv-python,
}:

buildPythonPackage rec {
  pname = "imagecorruptions";
  version = "1.1.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "044e173f24d5934899bdbf3596bfbec917e8083e507eed583ab217abebbe084d";
  };

  build-system = [ setuptools ];

  dependencies = [
    numpy
    scikit-image
    opencv-python
  ];

  doCheck = false;
  pythonImportsCheck = [ "imagecorruptions" ];

  meta = {
    homepage = "https://github.com/bethgelab/imagecorruptions";
    description = "This package provides a set of image corruptions";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ rakesh4g ];
  };
}