Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 21 lines 550 B view raw
1{ lib, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "diff-match-patch"; 5 version = "20181111"; 6 7 meta = { 8 homepage = "https://github.com/diff-match-patch-python/diff-match-patch"; 9 description = "Diff, Match and Patch libraries for Plain Text"; 10 license = lib.licenses.asl20; 11 }; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "a809a996d0f09b9bbd59e9bbd0b71eed8c807922512910e05cbd3f9480712ddb"; 16 }; 17 18 checkPhase = '' 19 ${python.interpreter} -m unittest -v diff_match_patch.tests 20 ''; 21}