From 841d18380631b72e864dd4e6251f49b7ced6c4c3 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 4 Oct 2023 21:24:20 -0300 Subject: [PATCH] xmldiff: 2.4 -> 2.6.3 --- .../xm/xmldiff/package.nix} | 28 +++++++++---------- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 13 insertions(+), 17 deletions(-) rename pkgs/{tools/text/xml/xmldiff/default.nix => by-name/xm/xmldiff/package.nix} (74%) diff --git a/pkgs/tools/text/xml/xmldiff/default.nix b/pkgs/by-name/xm/xmldiff/package.nix similarity index 74% rename from pkgs/tools/text/xml/xmldiff/default.nix rename to pkgs/by-name/xm/xmldiff/package.nix index d9dbd70b6483c..05911ad2acd15 100644 --- a/pkgs/tools/text/xml/xmldiff/default.nix +++ b/pkgs/by-name/xm/xmldiff/package.nix @@ -1,29 +1,27 @@ { lib -, buildPythonApplication +, python3 , fetchFromGitHub -, lxml -, setuptools -, six }: -buildPythonApplication rec { - pname = "xmldiff"; - version = "2.4"; - +let + version = "2.6.3"; src = fetchFromGitHub { owner = "Shoobx"; - repo = pname; + repo = "xmldiff"; rev = version; - hash = "sha256-xqudHYfwOce2C0pcFzId0JDIIC6R5bllmVKsH+CvTdE="; + hash = "sha256-qn8gGultTSNKPUro6Ap4xJGcbpxV+lKgZFpKvyPdhtc="; }; +in +python3.pkgs.buildPythonApplication { + pname = "xmldiff"; + inherit version src; - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ lxml setuptools - six ]; - meta = with lib; { + meta = { homepage = "https://xmldiff.readthedocs.io/en/stable/"; description = "A library and command line utility for diffing xml"; longDescription = '' @@ -37,7 +35,7 @@ buildPythonApplication rec { 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 anpryl ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ AndersonTorres anpryl ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c460de1f2d2cc..aae5a5dec0079 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15027,8 +15027,6 @@ with pkgs; xml2 = callPackage ../tools/text/xml/xml2 { }; - xmldiff = python3Packages.callPackage ../tools/text/xml/xmldiff { }; - xmlformat = callPackage ../tools/text/xml/xmlformat { }; xmlroff = callPackage ../tools/typesetting/xmlroff { };