blob: 5ab18ebb69054c3904de5cbbd57d55206c293340 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
lib,
buildPythonPackage,
fetchPypi,
pdm-backend,
pydantic,
pytest-vcr,
pytestCheckHook,
pythonOlder,
requests,
requests-oauthlib,
}:
buildPythonPackage rec {
pname = "garth";
version = "0.4.46";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-WuGeZ2EggyhbEDIbjg4ffIFaj2DyHi8Tvowhoi5k2Os=";
};
pythonRelaxDeps = [ "requests-oauthlib" ];
build-system = [ pdm-backend ];
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 = with lib; {
description = "Garmin SSO auth and connect client";
homepage = "https://github.com/matin/garth";
changelog = "https://github.com/matin/garth/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|