1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pillow, 6 mock, 7 unittestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "imgdiff"; 12 version = "1.7.1"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "mgedmin"; 17 repo = "imgdiff"; 18 rev = version; 19 hash = "sha256-Y5nUnjihRpVVehhP1LUgfuJN5nCxEJu6P1w99Igpxjs="; 20 }; 21 22 propagatedBuildInputs = [ pillow ]; 23 24 pythonImportsCheck = [ "imgdiff" ]; 25 26 nativeCheckInputs = [ 27 mock 28 unittestCheckHook 29 ]; 30 31 meta = with lib; { 32 description = "Compare two images side-by-side"; 33 mainProgram = "imgdiff"; 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}