1{ lib
2, buildPythonPackage
3, fetchgit
4, pillow
5, poetry-core
6, pytest-benchmark
7, pytest-mypy
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "pixelmatch";
14 version = "0.2.3";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 # Test fixtures are stored in LFS
20 src = fetchgit {
21 url = "https://github.com/whtsky/pixelmatch-py";
22 rev = "v${version}";
23 hash = "sha256-/zRQhwz+HjT0Hs4CunsqHxHWEtoIH9qMBowRb0Pps6Y=";
24 fetchLFS = true;
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 checkInputs = [
32 pillow
33 pytest-benchmark
34 pytest-mypy
35 pytestCheckHook
36 ];
37
38 pytestFlagsArray = [
39 # Incompatible types in assignment
40 #"--mypy"
41 "--benchmark-disable"
42 ];
43
44 pythonImportsCheck = [
45 "pixelmatch"
46 ];
47
48 meta = with lib; {
49 description = "Pixel-level image comparison library";
50 homepage = "https://github.com/whtsky/pixelmatch-py";
51 license = licenses.isc;
52 maintainers = with maintainers; [ ];
53 };
54}