depot/third_party/nixpkgs/pkgs/development/python-modules/diff-match-patch/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

21 lines
550 B
Nix

{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "diff-match-patch";
version = "20200713";
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 = "da6f5a01aa586df23dfc89f3827e1cafbb5420be9d87769eeb079ddfd9477a18";
};
checkPhase = ''
${python.interpreter} -m unittest -v diff_match_patch.tests
'';
}