Files
nixpkgs/pkgs/development/python-modules/garth/default.nix
T
2026-01-11 18:55:54 +01:00

63 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
pydantic,
pytest-vcr,
pytestCheckHook,
requests,
requests-oauthlib,
}:
buildPythonPackage (finalAttrs: {
pname = "garth";
version = "0.5.21";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-jZeVldHU6iOhtGarSmCVXRObcfiG9GSQvhQPzuWE2rQ=";
};
pythonRelaxDeps = [ "requests-oauthlib" ];
build-system = [ hatchling ];
dependencies = [
pydantic
requests
requests-oauthlib
];
nativeCheckInputs = [
pytest-vcr
pytestCheckHook
];
pythonImportsCheck = [ "garth" ];
disabledTests = [
# Tests require network access
"test_client_request"
"test_connectapi"
"test_daily"
"test_download"
"test_exchange"
"test_hrv_data_get"
"test_login"
"test_refresh_oauth2_token"
"test_sleep_data"
"test_username"
"test_weekly"
];
meta = {
description = "Garmin SSO auth and connect client";
homepage = "https://github.com/matin/garth";
changelog = "https://github.com/matin/garth/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})