1{
2 lib,
3 python3,
4 buildPythonPackage,
5 fetchFromGitHub,
6 typing-extensions,
7 diffimg,
8 imgdiff,
9 pytestCheckHook,
10 recommonmark,
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-image-diff";
15 version = "0.0.11";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "Apkawa";
20 repo = "pytest-image-diff";
21 rev = "v${version}";
22 hash = "sha256-7GBwxm0YQNN/Gq1yyBIxCEYbM7hmOFa9kUsfbBKQtBQ=";
23 };
24
25 propagatedBuildInputs = [
26 typing-extensions
27 diffimg
28 imgdiff
29 ];
30
31 pythonImportsCheck = [ "pytest_image_diff" ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 recommonmark
36 ];
37
38 meta = with lib; {
39 description = "Pytest helps for compare images and regression";
40 homepage = "https://github.com/Apkawa/pytest-image-diff";
41 license = licenses.mit;
42 maintainers = with maintainers; [ evils ];
43 };
44}