diff options
Diffstat (limited to 'pkgs/development/python-modules/garminconnect/default.nix')
-rw-r--r-- | pkgs/development/python-modules/garminconnect/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/garminconnect/default.nix b/pkgs/development/python-modules/garminconnect/default.nix new file mode 100644 index 0000000000000..62a85ea8bc367 --- /dev/null +++ b/pkgs/development/python-modules/garminconnect/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, cloudscraper +, fetchFromGitHub +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "garminconnect"; + version = "0.1.44"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "cyberjunky"; + repo = "python-garminconnect"; + rev = version; + hash = "sha256-CUjMbh3eGPwoHW+oOjaVyr0g/txWmzGuP1usq2WCwZg="; + }; + + propagatedBuildInputs = [ + cloudscraper + requests + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "garminconnect" + ]; + + meta = with lib; { + description = "Garmin Connect Python API wrapper"; + homepage = "https://github.com/cyberjunky/python-garminconnect"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |