summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-image-diff/default.nix
blob: 97ebdd73968adde5ae70abdcaa6bde2c77eb5143 (plain)
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
41
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  typing-extensions,
  diffimg,
  imgdiff,
  pytestCheckHook,
  recommonmark,
}:

buildPythonPackage rec {
  pname = "pytest-image-diff";
  version = "0.0.14";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Apkawa";
    repo = "pytest-image-diff";
    tag = "v${version}";
    hash = "sha256-BQwEbZBgjnx5becu5dcDx0yiw3Y2qptwyqywFq6lqas=";
  };

  propagatedBuildInputs = [
    typing-extensions
    diffimg
    imgdiff
  ];

  pythonImportsCheck = [ "pytest_image_diff" ];

  nativeCheckInputs = [
    pytestCheckHook
    recommonmark
  ];

  meta = {
    description = "Pytest helps for compare images and regression";
    homepage = "https://github.com/Apkawa/pytest-image-diff";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}