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