2dde247e69
https://github.com/matin/garth/releases/tag/0.6.3 This commit was automatically generated using update-python-libraries.
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
freezegun,
|
|
hatchling,
|
|
pydantic,
|
|
pytest-vcr,
|
|
pytestCheckHook,
|
|
requests,
|
|
requests-oauthlib,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "garth";
|
|
version = "0.6.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-UZ1LUylEY4ZSu3QO5E3PNuHSNDIa7PCF7dfxqB6mb2k=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "requests-oauthlib" ];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
pydantic
|
|
requests
|
|
requests-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
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"
|
|
# Telemetry mock not working out, no idea
|
|
"test_telemetry_env_enabled_with_mock"
|
|
"test_default_callback_calls_logfire"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
})
|