about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/image-diff/default.nix
blob: 8f65994b3885b32d7edb74ee955876460ad5f3f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ 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";
    mainProgram = "image-diff";
    homepage = "https://github.com/simonw/image-diff";
    license = licenses.asl20;
    maintainers = with maintainers; [ evils ];
  };
}