From 80cd6f9f254b860a676bc0ddeec5a231b9d0f23b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 22 Jan 2026 08:35:46 +0000 Subject: [PATCH 1/2] python3Packages.securityreporter: 1.3.0 -> 1.4.0 --- pkgs/development/python-modules/securityreporter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/securityreporter/default.nix b/pkgs/development/python-modules/securityreporter/default.nix index 0eed5cf1a62d..a71ba187ac62 100644 --- a/pkgs/development/python-modules/securityreporter/default.nix +++ b/pkgs/development/python-modules/securityreporter/default.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "securityreporter"; - version = "1.3.0"; + version = "1.4.0"; pyproject = true; src = fetchFromGitHub { owner = "dongit-org"; repo = "python-reporter"; tag = "v${version}"; - hash = "sha256-YvUDgsKM0JUajp8JAR2vj30QsNtcGvADGCZ791ZZD/8="; + hash = "sha256-bM11ztDd7Zg0O2+yGn9ZxKSo3B8nvhqUHSmdea/6sTg="; }; postPatch = '' From a603eb19c5f48d4a47269bb3b8346239b3de8c9c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 22 Jan 2026 11:05:09 +0100 Subject: [PATCH 2/2] python313Packages.securityreporter: migrate to finalAttrs --- .../python-modules/securityreporter/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/securityreporter/default.nix b/pkgs/development/python-modules/securityreporter/default.nix index a71ba187ac62..2b5e11cfdce8 100644 --- a/pkgs/development/python-modules/securityreporter/default.nix +++ b/pkgs/development/python-modules/securityreporter/default.nix @@ -9,7 +9,7 @@ responses, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "securityreporter"; version = "1.4.0"; pyproject = true; @@ -17,13 +17,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "dongit-org"; repo = "python-reporter"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-bM11ztDd7Zg0O2+yGn9ZxKSo3B8nvhqUHSmdea/6sTg="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail 'version = "0.0.0"' 'version = "${version}"' + --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' ''; build-system = [ poetry-core ]; @@ -46,8 +46,8 @@ buildPythonPackage rec { meta = { description = "Python wrapper for the Reporter API"; homepage = "https://github.com/dongit-org/python-reporter"; - changelog = "https://github.com/dongit-org/python-reporter/releases/tag/v${version}"; + changelog = "https://github.com/dongit-org/python-reporter/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})