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