2021-06-15 20:09:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-10 20:40:14 +01:00
|
|
|
, cloudscraper
|
2021-06-15 20:09:06 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "garminconnect-ha";
|
2021-07-10 20:40:14 +01:00
|
|
|
version = "0.1.13";
|
2021-06-15 20:09:06 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cyberjunky";
|
|
|
|
repo = "python-garminconnect-ha";
|
|
|
|
rev = version;
|
2021-07-10 20:40:14 +01:00
|
|
|
sha256 = "sha256-1O1EcG5FvpwUvI8rwcdlQLzEEStyFAwvmkaL97u6hZ4=";
|
2021-06-15 20:09:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-10 20:40:14 +01:00
|
|
|
cloudscraper
|
2021-06-15 20:09:06 +01:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "garminconnect_ha" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Minimal Garmin Connect Python 3 API wrapper for Home Assistant";
|
|
|
|
homepage = "https://github.com/cyberjunky/python-garminconnect-ha";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|