From c3c60df81a05a6a375352dbb32bb4ea24f5d9c1e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Dec 2022 11:33:02 +0100 Subject: [PATCH 1/2] python310Packages.dict2xml: add changelog to meta --- pkgs/development/python-modules/dict2xml/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/dict2xml/default.nix b/pkgs/development/python-modules/dict2xml/default.nix index a51ec5303cd2..1316b9bc3044 100644 --- a/pkgs/development/python-modules/dict2xml/default.nix +++ b/pkgs/development/python-modules/dict2xml/default.nix @@ -23,6 +23,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library to convert a Python dictionary into an XML string"; homepage = "https://github.com/delfick/python-dict2xml"; + changelog = "https://github.com/delfick/python-dict2xml/releases/tag/release-${version}"; license = licenses.mit; maintainers = with maintainers; [ johnazoidberg ]; }; From c74fa614c382b1900ca1a92c0351d9df80414f48 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Feb 2023 10:10:01 +0100 Subject: [PATCH 2/2] python310Packages.dict2xml: 1.7.1 -> 1.7.2 Changelog: https://github.com/delfick/python-dict2xml/releases/tag/release-1.7.2 --- .../python-modules/dict2xml/default.nix | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/dict2xml/default.nix b/pkgs/development/python-modules/dict2xml/default.nix index 1316b9bc3044..7b18007dc169 100644 --- a/pkgs/development/python-modules/dict2xml/default.nix +++ b/pkgs/development/python-modules/dict2xml/default.nix @@ -1,21 +1,31 @@ { lib -, fetchPypi , buildPythonPackage +, fetchFromGitHub , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "dict2xml"; - version = "1.7.1"; - format = "setuptools"; + version = "1.7.2"; + format = "pyproject"; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-ZgCqMx8X7uODNhH3GJmkOnZhLKdVoVdpzyBJLEsaoBY="; + src = fetchFromGitHub { + owner = "delfick"; + repo = "python-dict2xml"; + rev = "refs/tags/release-${version}"; + hash = "sha256-Ara+eWaUQv4VuzuVrpb5mjMXHHCxydS22glLsYz+UE0="; }; + nativeBuildInputs = [ + setuptools + ]; + + # Tests are inplemented in a custom DSL (RSpec) + doCheck = false; + pythonImportsCheck = [ "dict2xml" ];