From 42edbe3108ecceea70098b98afb7fa7dd9439d14 Mon Sep 17 00:00:00 2001 From: kyehn Date: Fri, 22 May 2026 22:06:38 +0000 Subject: [PATCH 1/3] python3Packages.garminconnect: remove unnecessary withings-sync dependency --- pkgs/development/python-modules/garminconnect/default.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/development/python-modules/garminconnect/default.nix b/pkgs/development/python-modules/garminconnect/default.nix index a26fd39a3337..3c6d352af9c2 100644 --- a/pkgs/development/python-modules/garminconnect/default.nix +++ b/pkgs/development/python-modules/garminconnect/default.nix @@ -5,7 +5,6 @@ garth, pdm-backend, requests, - withings-sync, }: buildPythonPackage rec { @@ -22,7 +21,6 @@ buildPythonPackage rec { pythonRelaxDeps = [ "garth" - "withings-sync" ]; build-system = [ pdm-backend ]; @@ -30,7 +28,6 @@ buildPythonPackage rec { dependencies = [ garth requests - withings-sync ]; # Tests require a token From b0ca8e91d2e804d2df7dede1de8e155c87cd2445 Mon Sep 17 00:00:00 2001 From: kyehn Date: Fri, 22 May 2026 22:06:58 +0000 Subject: [PATCH 2/3] python3Packages.withings-sync: 5.3.2 -> 6.0.2 --- .../python-modules/withings-sync/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/withings-sync/default.nix b/pkgs/development/python-modules/withings-sync/default.nix index 9a55b19272d7..41fd81a20f20 100644 --- a/pkgs/development/python-modules/withings-sync/default.nix +++ b/pkgs/development/python-modules/withings-sync/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, - garth, + garminconnect, importlib-resources, lxml, poetry-core, @@ -12,14 +12,14 @@ buildPythonPackage (finalAttrs: { pname = "withings-sync"; - version = "5.3.2"; + version = "6.0.2"; pyproject = true; src = fetchFromGitHub { owner = "jaroslawhartman"; repo = "withings-sync"; tag = "v${finalAttrs.version}"; - hash = "sha256-1pDM5paSXPQCOG5LRFxnp19K1iHcsfrGC9e7SEyxUDs="; + hash = "sha256-z0rVUFBbPff6xfItLQqbt+uN5Qe/BbVLAH1xMVUSfpA="; }; postPatch = '' @@ -27,10 +27,12 @@ buildPythonPackage (finalAttrs: { --replace-fail "1.0.0.dev1" "${finalAttrs.version}" ''; + pythonRelaxDeps = [ "garminconnect" ]; + build-system = [ poetry-core ]; dependencies = [ - garth + garminconnect importlib-resources lxml python-dotenv From 660f9a8edf07049eeeae99406ff252f784aebac0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 23 May 2026 01:17:56 +0200 Subject: [PATCH 3/3] python3Packages.garminconnect: migrate to finalAttrs --- .../python-modules/garminconnect/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/garminconnect/default.nix b/pkgs/development/python-modules/garminconnect/default.nix index 3c6d352af9c2..f8505523d217 100644 --- a/pkgs/development/python-modules/garminconnect/default.nix +++ b/pkgs/development/python-modules/garminconnect/default.nix @@ -7,7 +7,7 @@ requests, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "garminconnect"; version = "0.2.40"; pyproject = true; @@ -15,13 +15,11 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "cyberjunky"; repo = "python-garminconnect"; - tag = version; + tag = finalAttrs.version; hash = "sha256-EAmKrOmnJFn+vTfmAprd5onqW/uyOe/shSB1u0HVrIE="; }; - pythonRelaxDeps = [ - "garth" - ]; + pythonRelaxDeps = [ "garth" ]; build-system = [ pdm-backend ]; @@ -38,8 +36,8 @@ buildPythonPackage rec { meta = { description = "Garmin Connect Python API wrapper"; homepage = "https://github.com/cyberjunky/python-garminconnect"; - changelog = "https://github.com/cyberjunky/python-garminconnect/releases/tag/${src.tag}"; + changelog = "https://github.com/cyberjunky/python-garminconnect/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})