Files
nixpkgs/pkgs/by-name/ga/garmindb/package.nix
Matthias Beyer 771e0fb0b5 garmindb: Add matthiasbeyer as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2025-11-15 20:03:22 +01:00

81 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
matthiasbeyer
];
mainProgram = "garmindb";
};
}