Files
Attila Oláh 705421c517 python3Packages.garth: remove
Garmin changed its authentication flow, breaking new logins, and Garth is no longer maintained. Existing sessions may work until their tokens expire.

https://github.com/matin/garth#readme

Remove the stale garminconnect dependency: its packaged version no longer requires Garth.

Assisted-by: OpenCode (GPT-6.1 Terra)
2026-11-09 12:56:25 +01:00

44 lines
927 B
Nix

{
lib,
buildPythonPackage,
curl-cffi,
fetchFromGitHub,
pdm-backend,
requests,
ua-generator,
}:
buildPythonPackage (finalAttrs: {
pname = "garminconnect";
version = "0.3.20";
pyproject = true;
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect";
tag = finalAttrs.version;
hash = "sha256-3gVJTOIIGjIYqo5NvaIV/OHt0DxY16KCyokyJ9/bHiw=";
};
build-system = [ pdm-backend ];
dependencies = [
curl-cffi
requests
ua-generator
];
# Tests require a token
doCheck = false;
pythonImportsCheck = [ "garminconnect" ];
meta = {
description = "Garmin Connect Python API wrapper";
homepage = "https://github.com/cyberjunky/python-garminconnect";
changelog = "https://github.com/cyberjunky/python-garminconnect/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})