depot/third_party/nixpkgs/pkgs/development/python-modules/garminconnect-ha/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

35 lines
750 B
Nix

{ lib
, buildPythonPackage
, cloudscraper
, fetchFromGitHub
, requests
}:
buildPythonPackage rec {
pname = "garminconnect-ha";
version = "0.1.13";
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect-ha";
rev = version;
sha256 = "sha256-1O1EcG5FvpwUvI8rwcdlQLzEEStyFAwvmkaL97u6hZ4=";
};
propagatedBuildInputs = [
cloudscraper
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 ];
};
}