nixpkgs/pkgs/by-name/xm/xmldiff/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.3 KiB
Nix
Raw Normal View History

2021-03-14 05:35:47 +00:00
{ lib
2023-10-05 00:24:20 +00:00
, python3
2021-03-14 05:35:47 +00:00
, fetchFromGitHub
}:
2023-10-05 00:24:20 +00:00
let
version = "2.6.3";
2021-03-14 05:35:47 +00:00
src = fetchFromGitHub {
owner = "Shoobx";
2023-10-05 00:24:20 +00:00
repo = "xmldiff";
2021-03-14 05:35:47 +00:00
rev = version;
2023-10-05 00:24:20 +00:00
hash = "sha256-qn8gGultTSNKPUro6Ap4xJGcbpxV+lKgZFpKvyPdhtc=";
2021-03-14 05:35:47 +00:00
};
2023-10-05 00:24:20 +00:00
in
python3.pkgs.buildPythonApplication {
pname = "xmldiff";
inherit version src;
2021-03-14 05:35:47 +00:00
2023-10-05 00:24:20 +00:00
propagatedBuildInputs = with python3.pkgs; [
2021-03-14 05:35:47 +00:00
lxml
setuptools
2021-03-14 05:35:47 +00:00
];
2023-10-05 00:24:20 +00:00
meta = {
2021-03-14 05:35:47 +00:00
homepage = "https://xmldiff.readthedocs.io/en/stable/";
description = "Library and command line utility for diffing xml";
2021-03-14 05:35:47 +00:00
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 be readable by a human. xmldiff provides tools to make human
readable diffs in those situations.
'';
2023-10-05 00:24:20 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ AndersonTorres anpryl ];
2021-03-14 05:35:47 +00:00
};
}