2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pillow,
|
|
|
|
click,
|
|
|
|
click-default-group,
|
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "image-diff";
|
|
|
|
version = "0.2.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonw";
|
|
|
|
repo = "image-diff";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-AQykJNvBgVjmPVTwJOX17eKWelqvZZieq/giid8GYAY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pillow
|
|
|
|
click
|
|
|
|
click-default-group
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "image_diff" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI tool for comparing images";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "image-diff";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/simonw/image-diff";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ evils ];
|
|
|
|
};
|
|
|
|
}
|