From 77b90c2e174d76576c59fcde684dbcd8fc2f04e1 Mon Sep 17 00:00:00 2001 From: Wulpey Date: Sun, 12 Apr 2026 22:54:26 +0300 Subject: [PATCH] python3Packages.ossapi: use finalAttrs --- pkgs/development/python-modules/ossapi/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/ossapi/default.nix b/pkgs/development/python-modules/ossapi/default.nix index 49e195282ff5..aaacaad29164 100644 --- a/pkgs/development/python-modules/ossapi/default.nix +++ b/pkgs/development/python-modules/ossapi/default.nix @@ -10,7 +10,7 @@ typing-utils, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ossapi"; version = "5.3.4"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Liam-DeVoe"; repo = "ossapi"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Favez9YcEHgAPNxJg9L4J8BpEUYIx9IFhSeNToT7sv4="; }; @@ -45,8 +45,8 @@ buildPythonPackage rec { meta = { description = "Python wrapper for the osu! API"; homepage = "https://github.com/Liam-DeVoe/ossapi"; - changelog = "https://github.com/Liam-DeVoe/ossapi/releases/tag/${src.tag}"; + changelog = "https://github.com/Liam-DeVoe/ossapi/releases/tag/v${finalAttrs.version}"; license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ wulpine ]; }; -} +})