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