mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
66 lines
1.1 KiB
Nix
66 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pdm-backend
|
|
, pydantic
|
|
, pytest-vcr
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-oauthlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "garth";
|
|
version = "0.4.36";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wntyWW8pGZlRkP+3v3mLQjoq8E0K9THg0w1tsPIytCg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pdm-backend
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|