From 867212f299331989826f8710e94e815b31a900c9 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Thu, 30 Jul 2026 23:59:03 +0200 Subject: [PATCH 1/2] python3Packages.garminconnect-aio: migrate to pyproject --- .../python-modules/garminconnect-aio/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/garminconnect-aio/default.nix b/pkgs/development/python-modules/garminconnect-aio/default.nix index 9f176caf4850..43a19b919eef 100644 --- a/pkgs/development/python-modules/garminconnect-aio/default.nix +++ b/pkgs/development/python-modules/garminconnect-aio/default.nix @@ -5,12 +5,13 @@ buildPythonPackage, fetchFromGitHub, yarl, + setuptools, }: buildPythonPackage rec { pname = "garminconnect-aio"; version = "0.1.4"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "cyberjunky"; @@ -19,7 +20,9 @@ buildPythonPackage rec { hash = "sha256-GWY2kTG2D+wOJqM/22pNV5rLvWjAd4jxVGlHBou/T2g="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ aiohttp brotlipy yarl From 4b4e791fd5ae6f2dabd20e2f716b8919120e63c5 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Thu, 30 Jul 2026 23:59:29 +0200 Subject: [PATCH 2/2] python3Packages.garminconnect-aio: use finalAttrs --- .../python-modules/garminconnect-aio/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/garminconnect-aio/default.nix b/pkgs/development/python-modules/garminconnect-aio/default.nix index 43a19b919eef..906009976698 100644 --- a/pkgs/development/python-modules/garminconnect-aio/default.nix +++ b/pkgs/development/python-modules/garminconnect-aio/default.nix @@ -8,7 +8,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "garminconnect-aio"; version = "0.1.4"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "cyberjunky"; repo = "python-garminconnect-aio"; - rev = version; + tag = finalAttrs.version; hash = "sha256-GWY2kTG2D+wOJqM/22pNV5rLvWjAd4jxVGlHBou/T2g="; }; @@ -39,4 +39,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})