depot/third_party/nixpkgs/pkgs/development/python-modules/diff-match-patch/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

21 lines
550 B
Nix

{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "diff-match-patch";
version = "20181111";
meta = {
homepage = "https://github.com/diff-match-patch-python/diff-match-patch";
description = "Diff, Match and Patch libraries for Plain Text";
license = lib.licenses.asl20;
};
src = fetchPypi {
inherit pname version;
sha256 = "a809a996d0f09b9bbd59e9bbd0b71eed8c807922512910e05cbd3f9480712ddb";
};
checkPhase = ''
${python.interpreter} -m unittest -v diff_match_patch.tests
'';
}