2019-10-11 12:48:30 -07:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python }:
|
2017-08-31 12:02:34 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diff-match-patch";
|
2020-08-16 10:30:57 -07:00
|
|
|
version = "20200713";
|
2017-08-31 12:02:34 -07:00
|
|
|
|
|
|
|
meta = {
|
2019-12-08 08:50:31 -08:00
|
|
|
homepage = "https://github.com/diff-match-patch-python/diff-match-patch";
|
2017-08-31 12:02:34 -07:00
|
|
|
description = "Diff, Match and Patch libraries for Plain Text";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 10:30:57 -07:00
|
|
|
sha256 = "da6f5a01aa586df23dfc89f3827e1cafbb5420be9d87769eeb079ddfd9477a18";
|
2017-08-31 12:02:34 -07:00
|
|
|
};
|
2019-10-11 12:48:30 -07:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest -v diff_match_patch.tests
|
|
|
|
'';
|
2017-08-31 12:02:34 -07:00
|
|
|
}
|