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";
|
2019-02-14 07:37:14 +00:00
|
|
|
version = "20181111";
|
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;
|
2019-02-14 07:37:14 +00:00
|
|
|
sha256 = "a809a996d0f09b9bbd59e9bbd0b71eed8c807922512910e05cbd3f9480712ddb";
|
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
|
|
|
}
|