mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 17:30:19 +00:00
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)
44 lines
927 B
Nix
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 ];
|
|
};
|
|
})
|