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