1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "patiencediff"; 10 version = "0.2.6"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "breezy-team"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-oJOsqZ9XCbYHJ7VEbDpC9wquCkvfj05M0nerlV5jL7w="; 20 }; 21 22 checkInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "patiencediff" 28 ]; 29 30 meta = with lib; { 31 description = "C implementation of patiencediff algorithm for Python"; 32 homepage = "https://github.com/breezy-team/patiencediff"; 33 license = licenses.gpl2Plus; 34 maintainers = with maintainers; [ wildsebastian ]; 35 }; 36}