From a9cbf2676125a63fd946613c2b998be4314b2b71 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 31 Jan 2026 21:02:28 +0000 Subject: [PATCH] python3Packages.gluonts: use finalAttrs --- .../development/python-modules/gluonts/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/gluonts/default.nix b/pkgs/development/python-modules/gluonts/default.nix index 0335550d148b..2d91cf17fe6b 100644 --- a/pkgs/development/python-modules/gluonts/default.nix +++ b/pkgs/development/python-modules/gluonts/default.nix @@ -1,6 +1,6 @@ { - stdenv, lib, + stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, @@ -20,7 +20,7 @@ lightning, scipy, - # test + # tests pytestCheckHook, distutils, matplotlib, @@ -30,7 +30,7 @@ which, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "gluonts"; version = "0.16.2"; pyproject = true; @@ -38,7 +38,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "awslabs"; repo = "gluonts"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-h0+RYgGMz0gPchiKGIu0/NGcWBky5AWNTJKzoupn/iQ="; }; @@ -100,7 +100,7 @@ buildPythonPackage rec { writableTmpDirAsHomeHook which ] - ++ optional-dependencies.torch; + ++ finalAttrs.passthru.optional-dependencies.torch; disabledTestPaths = [ # requires `cpflows`, not in Nixpkgs @@ -119,8 +119,8 @@ buildPythonPackage rec { meta = { description = "Probabilistic time series modeling in Python"; homepage = "https://ts.gluon.ai"; - changelog = "https://github.com/awslabs/gluonts/releases/tag/${src.tag}"; + changelog = "https://github.com/awslabs/gluonts/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; }; -} +})