about summary refs log tree commit diff
path: root/pkgs/tools/text/xml
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-03-18 13:35:59 +0100
committerJan Tojnar <jtojnar@gmail.com>2021-03-18 13:35:59 +0100
commit0136206b12cdcee87d34ccdfd1864c0bb6541aec (patch)
treeeb6597b5dc6da16585f5e9a8d1649f44ea3f51b3 /pkgs/tools/text/xml
parentc31077a6020c4d365496a618ba07121b9331bc52 (diff)
parentde4012ac80df34f1b77f07c70e935e4908729e71 (diff)
downloadnixlib-0136206b12cdcee87d34ccdfd1864c0bb6541aec.tar
nixlib-0136206b12cdcee87d34ccdfd1864c0bb6541aec.tar.gz
nixlib-0136206b12cdcee87d34ccdfd1864c0bb6541aec.tar.bz2
nixlib-0136206b12cdcee87d34ccdfd1864c0bb6541aec.tar.lz
nixlib-0136206b12cdcee87d34ccdfd1864c0bb6541aec.tar.xz
nixlib-0136206b12cdcee87d34ccdfd1864c0bb6541aec.tar.zst
nixlib-0136206b12cdcee87d34ccdfd1864c0bb6541aec.zip
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/tools/text/xml')
-rw-r--r--pkgs/tools/text/xml/xmldiff/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/text/xml/xmldiff/default.nix b/pkgs/tools/text/xml/xmldiff/default.nix
new file mode 100644
index 000000000000..5814435e111b
--- /dev/null
+++ b/pkgs/tools/text/xml/xmldiff/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonApplication
+, fetchFromGitHub
+, lxml
+, six
+}:
+
+buildPythonApplication rec {
+  pname = "xmldiff";
+  version = "2.4";
+
+  src = fetchFromGitHub {
+    owner = "Shoobx";
+    repo = pname;
+    rev = version;
+    hash = "sha256-xqudHYfwOce2C0pcFzId0JDIIC6R5bllmVKsH+CvTdE=";
+  };
+
+  buildInputs = [
+    lxml
+    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;
+    maintainers = with maintainers; [ AndersonTorres ];
+  };
+}