1{ lib, buildPythonPackage, fetchgit, poetry-core, pytestCheckHook, pytest-benchmark, pytest-mypy, pillow }: 2 3buildPythonPackage rec { 4 pname = "pixelmatch"; 5 version = "0.2.2"; 6 format = "pyproject"; 7 8 # test fixtures are stored in LFS 9 src = fetchgit { 10 url = "https://github.com/whtsky/pixelmatch-py"; 11 rev = "v${version}"; 12 sha256 = "1dsix507dxqik9wvgzscvf2pifbg7gx74krrsalqbfcmm7d1i7xl"; 13 fetchLFS = true; 14 }; 15 16 nativeBuildInputs = [ 17 poetry-core 18 ]; 19 20 checkInputs = [ 21 pytestCheckHook 22 pytest-benchmark 23 pytest-mypy 24 pillow 25 ]; 26 27 pytestFlagsArray = [ 28 "--mypy" 29 "--benchmark-disable" 30 ]; 31 32 meta = with lib; { 33 description = "A pixel-level image comparison library."; 34 homepage = "https://github.com/whtsky/pixelmatch-py"; 35 license = licenses.isc; 36 maintainers = with maintainers; [ petabyteboy ]; 37 }; 38}