Files
nixpkgs/pkgs/by-name/xm/xmldiff/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.4 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
}:
let
version = "2.6.3";
src = fetchFromGitHub {
owner = "Shoobx";
repo = "xmldiff";
rev = version;
hash = "sha256-qn8gGultTSNKPUro6Ap4xJGcbpxV+lKgZFpKvyPdhtc=";
};
in
python3.pkgs.buildPythonApplication {
pname = "xmldiff";
inherit version src;
pyproject = true;
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
lxml
setuptools # pkg_resources is imported during runtime
];
meta = {
homepage = "https://xmldiff.readthedocs.io/en/stable/";
description = "Library and command line utility for diffing xml";
longDescription = ''
xmldiff is a library and a command-line utility for making diffs out of
XML. This may seem like something that doesn't need a dedicated utility,
but change detection in hierarchical data is very different from change
detection in flat data. XML type formats are also not only used for
computer readable data, it is also often used as a format for hierarchical
data that can be rendered into human readable formats. A traditional diff
on such a format would tell you line by line the differences, but this
would not be readable by a human. xmldiff provides tools to make human
readable diffs in those situations.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ anpryl ];
};
}