1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flit-core, 6 unittestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "diff-match-patch"; 11 version = "20230430"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-lTAZzbnJ0snke1sSvP889HRvxFmOtAYHb6H8J+ah8Vw="; 17 }; 18 19 nativeBuildInputs = [ flit-core ]; 20 21 nativeCheckInputs = [ unittestCheckHook ]; 22 23 meta = with lib; { 24 homepage = "https://github.com/diff-match-patch-python/diff-match-patch"; 25 description = "Diff, Match and Patch libraries for Plain Text"; 26 license = licenses.asl20; 27 maintainers = with maintainers; [ ]; 28 }; 29}