1{ lib, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "diff-match-patch"; 5 version = "20200713"; 6 7 meta = { 8 homepage = "https://github.com/diff-match-patch-python/diff-match-patch"; 9 description = "Diff, Match and Patch libraries for Plain Text"; 10 license = lib.licenses.asl20; 11 }; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "da6f5a01aa586df23dfc89f3827e1cafbb5420be9d87769eeb079ddfd9477a18"; 16 }; 17 18 checkPhase = '' 19 ${python.interpreter} -m unittest -v diff_match_patch.tests 20 ''; 21}