2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxml
|
2022-06-16 17:23:12 +00:00
|
|
|
, setuptools
|
2021-03-19 17:17:44 +00:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "xmldiff";
|
|
|
|
version = "2.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Shoobx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-xqudHYfwOce2C0pcFzId0JDIIC6R5bllmVKsH+CvTdE=";
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-03-19 17:17:44 +00:00
|
|
|
lxml
|
2022-06-16 17:23:12 +00:00
|
|
|
setuptools
|
2021-03-19 17:17:44 +00:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://xmldiff.readthedocs.io/en/stable/";
|
|
|
|
description = "A 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 be readable by a human. xmldiff provides tools to make human
|
|
|
|
readable diffs in those situations.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres anpryl ];
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
}
|