This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
31 lines
627 B
Nix
31 lines
627 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
flit-core,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "diff-match-patch";
|
|
version = "20241021";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "diff_match_patch";
|
|
inherit version;
|
|
hash = "sha256-vq5XqZ+kgIRTKTXuKWi4Zh24YYYuyCxvIfSs3W2DUHM=";
|
|
};
|
|
|
|
dependencies = [ flit-core ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
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;
|
|
maintainers = [ ];
|
|
};
|
|
}
|