Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 66 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, fetchPypi, pdm-backend, pydantic, pytest-vcr, pytestCheckHook, pythonOlder, requests, requests-oauthlib}:
buildPythonPackage rec { pname = "garth"; version = "0.4.44"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi { inherit pname version; hash = "sha256-CgLWstmhWXI2w6KBSpIGp8G1smWAKXC0goHKw3I9rJ4="; };
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"; changelog = "https://github.com/matin/garth/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}