mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
python311Packages.garth: init at 0.4.25
This commit is contained in:
parent
204057ee53
commit
30e1bb0d4d
65
pkgs/development/python-modules/garth/default.nix
Normal file
65
pkgs/development/python-modules/garth/default.nix
Normal file
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user