1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pillow 5, mock 6, unittestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "imgdiff"; 11 version = "1.7.1"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "mgedmin"; 16 repo = "imgdiff"; 17 rev = version; 18 hash = "sha256-Y5nUnjihRpVVehhP1LUgfuJN5nCxEJu6P1w99Igpxjs="; 19 }; 20 21 propagatedBuildInputs = [ 22 pillow 23 ]; 24 25 pythonImportsCheck = [ "imgdiff" ]; 26 27 nativeCheckInputs = [ 28 mock 29 unittestCheckHook 30 ]; 31 32 meta = with lib; { 33 description = "Compare two images side-by-side"; 34 homepage = "https://github.com/mgedmin/imgdiff"; 35 changelog = "https://github.com/mgedmin/imgdiff/blob/${src.rev}/CHANGES.rst"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ evils ]; 38 }; 39}