Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, cloudscraper 4, fetchFromGitHub 5, pythonOlder 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "garminconnect"; 11 version = "0.1.55"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "cyberjunky"; 18 repo = "python-garminconnect"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-YPLlrlV8UyoaNtE+LgX7jpZkR7jbSe/2WRR0v0cfACY="; 21 }; 22 23 propagatedBuildInputs = [ 24 cloudscraper 25 requests 26 ]; 27 28 # Module has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "garminconnect" 33 ]; 34 35 meta = with lib; { 36 description = "Garmin Connect Python API wrapper"; 37 homepage = "https://github.com/cyberjunky/python-garminconnect"; 38 changelog = "https://github.com/cyberjunky/python-garminconnect/releases/tag/${version}"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}