From 6f44a0632a991775ee098e9a54d95b13cbd2115c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 May 2023 21:49:55 +0200 Subject: [PATCH 1/2] python310Packages.invocations: 3.0.1 -> 3.0.2 Diff: https://github.com/pyinvoke/invocations/compare/3.0.1...3.0.2 --- pkgs/development/python-modules/invocations/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/invocations/default.nix b/pkgs/development/python-modules/invocations/default.nix index ec908b22b9b8..3ee21163e56e 100644 --- a/pkgs/development/python-modules/invocations/default.nix +++ b/pkgs/development/python-modules/invocations/default.nix @@ -12,14 +12,14 @@ buildPythonPackage rec { pname = "invocations"; - version = "3.0.1"; + version = "3.0.2"; format = "setuptools"; src = fetchFromGitHub { owner = "pyinvoke"; repo = pname; rev = version; - hash = "sha256-G0sl2DCROxlTnW3lWKeGw4qDmnaeRC4xYf27d6YePjE="; + hash = "sha256-sXMxTOi0iCz7Zq0lXkpproUtkId5p/GCqP1TvgqYlME="; }; postPatch = '' From c87e3dc91580e28224111d9275f0d7040181876e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 May 2023 22:04:43 +0200 Subject: [PATCH 2/2] python310Packages.invocations: add changelog to meta - disable on unsupported Python releases - update postPatch section --- pkgs/development/python-modules/invocations/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/invocations/default.nix b/pkgs/development/python-modules/invocations/default.nix index 3ee21163e56e..ee0c2f061731 100644 --- a/pkgs/development/python-modules/invocations/default.nix +++ b/pkgs/development/python-modules/invocations/default.nix @@ -3,6 +3,7 @@ , blessings , fetchFromGitHub , invoke +, pythonOlder , releases , semantic-version , tabulate @@ -15,17 +16,18 @@ buildPythonPackage rec { version = "3.0.2"; format = "setuptools"; + disabled = pythonOlder "3.6"; + src = fetchFromGitHub { owner = "pyinvoke"; repo = pname; - rev = version; + rev = "refs/tags/${version}"; hash = "sha256-sXMxTOi0iCz7Zq0lXkpproUtkId5p/GCqP1TvgqYlME="; }; postPatch = '' substituteInPlace setup.py \ - --replace "semantic_version>=2.4,<2.7" "semantic_version" \ - --replace "tabulate==0.7.5" "tabulate" + --replace "semantic_version>=2.4,<2.7" "semantic_version" ''; propagatedBuildInputs = [ @@ -48,6 +50,7 @@ buildPythonPackage rec { meta = with lib; { description = "Common/best-practice Invoke tasks and collections"; homepage = "https://invocations.readthedocs.io/"; + changelog = "https://github.com/pyinvoke/invocations/blob/${version}/docs/changelog.rst"; license = licenses.bsd2; maintainers = with maintainers; [ samuela ]; };