Files
nixpkgs/pkgs/by-name/ga/garmindb/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

78 lines
1.7 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {
pname = "garmindb";
version = "3.6.5";
pyproject = true;
src = fetchFromGitHub {
owner = "tcgoetz";
repo = "garmindb";
tag = "v${version}";
hash = "sha256-uXRFvItaO4ptvxzvqN8bOzTUWcVeGk0IX82z+yLWFDw=";
};
pythonRelaxDeps = [
"sqlalchemy"
"cached-property"
"garth"
"tqdm"
"fitfile"
"tcxfile"
"idbutils"
];
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
sqlalchemy
python-dateutil
cached-property
tqdm
garth
fitfile
tcxfile
idbutils
tornado
];
# require data files
disabledTestPaths = [
"test/test_activities_db.py"
"test/test_config.py"
"test/test_copy.py"
"test/test_db_base.py"
"test/test_fit_file.py"
"test/test_garmin_db.py"
"test/test_garmin_db_objects.py"
"test/test_garmin_summary_db.py"
"test/test_monitoring_db.py"
"test/test_profile_file.py"
"test/test_summary_db.py"
"test/test_summary_db_base.py"
"test/test_tcx_file.py"
];
nativeCheckInputs = [
python3Packages.pytestCheckHook
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 ];
mainProgram = "garmindb";
};
}