1{
2 lib,
3 buildPythonPackage,
4 fetchgit,
5 pillow,
6 poetry-core,
7 pytest-benchmark,
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 = [ poetry-core ];
28
29 nativeCheckInputs = [
30 pillow
31 pytest-benchmark
32 pytestCheckHook
33 ];
34
35 pytestFlagsArray = [ "--benchmark-disable" ];
36
37 pythonImportsCheck = [ "pixelmatch" ];
38
39 meta = with lib; {
40 description = "Pixel-level image comparison library";
41 homepage = "https://github.com/whtsky/pixelmatch-py";
42 license = licenses.isc;
43 maintainers = [ ];
44 };
45}