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