From addeabfe6cd2eb707e8f9a5798b63c8b9396c6ff Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 26 Jan 2026 13:10:28 +0100 Subject: [PATCH] python313Packages.influxdb3-python: migrate to finalAttrs --- .../python-modules/influxdb3-python/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/influxdb3-python/default.nix b/pkgs/development/python-modules/influxdb3-python/default.nix index 8c1fb6f74922..ef943239a06f 100644 --- a/pkgs/development/python-modules/influxdb3-python/default.nix +++ b/pkgs/development/python-modules/influxdb3-python/default.nix @@ -12,7 +12,7 @@ urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "influxdb3-python"; version = "0.17.0"; pyproject = true; @@ -20,14 +20,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "InfluxCommunity"; repo = "influxdb3-python"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-DqCA0sk5xOQTFoJR+b/r+PN9bJaWSkgsFUK1o1qaAoU="; }; postPatch = '' # Upstream falls back to a default version if not in a GitHub Actions substituteInPlace setup.py \ - --replace-fail "version=get_version()," "version = '${version}'," + --replace-fail "version=get_version()," "version = '${finalAttrs.version}'," ''; build-system = [ setuptools ]; @@ -62,8 +62,8 @@ buildPythonPackage rec { meta = { description = "Python module that provides a simple and convenient way to interact with InfluxDB 3.0"; homepage = "https://github.com/InfluxCommunity/influxdb3-python"; - changelog = "https://github.com/InfluxCommunity/influxdb3-python/releases/tag/${src.tag}"; + changelog = "https://github.com/InfluxCommunity/influxdb3-python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})