about summary refs log tree commit diff
path: root/pkgs/development/python-modules/imgdiff/default.nix
blob: 6cb92f32933498d5d1aae970b3930bbfc51d118b (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
, buildPythonPackage
, fetchFromGitHub
, pillow
, mock
, unittestCheckHook
}:

buildPythonPackage rec {
  pname = "imgdiff";
  version = "1.7.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mgedmin";
    repo = "imgdiff";
    rev = version;
    hash = "sha256-Y5nUnjihRpVVehhP1LUgfuJN5nCxEJu6P1w99Igpxjs=";
  };

  propagatedBuildInputs = [
    pillow
  ];

  pythonImportsCheck = [ "imgdiff" ];

  nativeCheckInputs = [
    mock
    unittestCheckHook
  ];

  meta = with lib; {
    description = "Compare two images side-by-side";
    mainProgram = "imgdiff";
    homepage = "https://github.com/mgedmin/imgdiff";
    changelog = "https://github.com/mgedmin/imgdiff/blob/${src.rev}/CHANGES.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ evils ];
  };
}