567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
746 B
Nix
39 lines
746 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|