mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-01 10:19:57 +00:00
42 lines
850 B
Nix
42 lines
850 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
numpy,
|
|
scikit-image,
|
|
lib,
|
|
opencv-python,
|
|
standard-pkg-resources,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttr: {
|
|
pname = "imagecorruptions";
|
|
version = "1.1.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bethgelab";
|
|
repo = "imagecorruptions";
|
|
tag = "v${finalAttr.version}";
|
|
hash = "sha256-xAFBFe6D0lspenDwa7Sly+/QWBQiAfuNUf3ZuaYqD54=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
scikit-image
|
|
opencv-python
|
|
standard-pkg-resources
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
})
|