1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, freezegun 5, mock 6, pytestCheckHook 7, python-dateutil 8, pythonOlder 9, requests-mock 10, requests-oauthlib 11}: 12 13buildPythonPackage rec { 14 pname = "fitbit"; 15 version = "0.3.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "orcasgit"; 22 repo = "python-fitbit"; 23 rev = version; 24 hash = "sha256-1u3h47lRBrJ7EUWBl5+RLGW4KHHqXqqrXbboZdy7VPA="; 25 }; 26 27 propagatedBuildInputs = [ 28 python-dateutil 29 requests-oauthlib 30 ]; 31 32 nativeCheckInputs = [ 33 freezegun 34 mock 35 pytestCheckHook 36 requests-mock 37 ]; 38 39 pythonImportsCheck = [ 40 "fitbit" 41 ]; 42 43 meta = with lib; { 44 description = "Fitbit API Python Client Implementation"; 45 homepage = "https://github.com/orcasgit/python-fitbit"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ delroth ]; 48 }; 49}