From b9fd1e9e5901d3028f032cfa1c6df0dc28f2e49b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 21 Mar 2025 14:10:14 +0100 Subject: [PATCH] garmindb: relax garth and add pythonImportsCheck --- pkgs/by-name/ga/garmindb/package.nix | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/ga/garmindb/package.nix b/pkgs/by-name/ga/garmindb/package.nix index b7093d52b441..c5f19b89e90c 100644 --- a/pkgs/by-name/ga/garmindb/package.nix +++ b/pkgs/by-name/ga/garmindb/package.nix @@ -17,10 +17,18 @@ python3Packages.buildPythonApplication rec { hash = "sha256-JAUDAYf9CH/BxwV88ziF5Zy+3ibcbieEfHrZpHSU8m0="; }; - build-system = [ - python3Packages.setuptools + pythonRelaxDeps = [ + "sqlalchemy" + "cached-property" + "garth" + "tqdm" + "fitfile" + "tcxfile" + "idbutils" ]; + build-system = with python3Packages; [ setuptools ]; + dependencies = with python3Packages; [ sqlalchemy python-dateutil @@ -33,15 +41,6 @@ python3Packages.buildPythonApplication rec { tornado ]; - pythonRelaxDeps = [ - "sqlalchemy" - "cached-property" - "tqdm" - "fitfile" - "tcxfile" - "idbutils" - ]; - # require data files disabledTestPaths = [ "test/test_activities_db.py" @@ -64,9 +63,12 @@ python3Packages.buildPythonApplication rec { writableTmpDirAsHomeHook ]; + pythonImportsCheck = [ "garmindb" ]; + meta = { description = "Download and parse data from Garmin Connect or a Garmin watch"; homepage = "https://github.com/tcgoetz/GarminDB"; + changelog = "https://github.com/tcgoetz/GarminDB/releases/tag/${src.tag}"; license = lib.licenses.gpl2Only; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ ethancedwards8 ];