41 lines
799 B
Nix
41 lines
799 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cloudscraper
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "garminconnect";
|
|
version = "0.1.45";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cyberjunky";
|
|
repo = "python-garminconnect";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8ORot3ZEh+1cAV/Ec63ghBQFt4LyaH+rRsgzYA6wEdI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|