depot/third_party/nixpkgs/pkgs/development/python-modules/garth/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

63 lines
1.2 KiB
Nix

{
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=";
};
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 ];
};
}