Merge pull request #255649 from fabaff/garminconnect-bump
python311Packages.garminconnect: 0.1.55 -> 0.2.4
This commit is contained in:
@@ -2,14 +2,16 @@
|
||||
, buildPythonPackage
|
||||
, cloudscraper
|
||||
, fetchFromGitHub
|
||||
, garth
|
||||
, pdm-backend
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "garminconnect";
|
||||
version = "0.1.55";
|
||||
format = "setuptools";
|
||||
version = "0.2.4";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@@ -17,15 +19,20 @@ buildPythonPackage rec {
|
||||
owner = "cyberjunky";
|
||||
repo = "python-garminconnect";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-YPLlrlV8UyoaNtE+LgX7jpZkR7jbSe/2WRR0v0cfACY=";
|
||||
hash = "sha256-C+LldV7TyyubaH8HVdFl7NnaPSLf4bzM03+r72vkOk8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pdm-backend
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cloudscraper
|
||||
garth
|
||||
requests
|
||||
];
|
||||
|
||||
# Module has no tests
|
||||
# Tests require a token
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pdm-backend
|
||||
, pydantic
|
||||
, pytest-vcr
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-oauthlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "garth";
|
||||
version = "0.4.25";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-n+vy9MCSBvxFOcD/jk2oPSa/bzf550mk+dZYSVa0rm0=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -4191,6 +4191,8 @@ self: super: with self; {
|
||||
|
||||
garminconnect = callPackage ../development/python-modules/garminconnect { };
|
||||
|
||||
garth = callPackage ../development/python-modules/garth { };
|
||||
|
||||
gassist-text = callPackage ../development/python-modules/gassist-text { };
|
||||
|
||||
gast = callPackage ../development/python-modules/gast { };
|
||||
|
||||
Reference in New Issue
Block a user