nixpkgs/pkgs/development/python-modules/garminconnect/default.nix

42 lines
787 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, cloudscraper
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
2022-02-06 01:45:40 +03:00
pname = "garminconnect";
version = "0.1.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect-ha";
rev = version;
2022-02-06 01:45:40 +03:00
hash = "sha256-1O1EcG5FvpwUvI8rwcdlQLzEEStyFAwvmkaL97u6hZ4=";
};
propagatedBuildInputs = [
cloudscraper
requests
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
2022-02-06 01:45:40 +03:00
"garminconnect"
];
meta = with lib; {
2022-02-06 01:45:40 +03:00
description = "Garmin Connect Python API wrapper";
homepage = "https://github.com/cyberjunky/python-garminconnect";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}