depot/third_party/nixpkgs/pkgs/development/python-modules/image-diff/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

40 lines
783 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pillow,
click,
click-default-group,
pytestCheckHook,
}:
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";
mainProgram = "image-diff";
homepage = "https://github.com/simonw/image-diff";
license = licenses.asl20;
maintainers = with maintainers; [ evils ];
};
}