depot/third_party/nixpkgs/pkgs/development/python-modules/image-diff/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

39 lines
751 B
Nix

{ lib
, python
, 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";
homepage = "https://github.com/simonw/image-diff";
license = licenses.asl20;
maintainers = with maintainers; [ evils ];
};
}