My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/fitbit/default.nix

49 lines
881 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, freezegun
, mock
, pytestCheckHook
, python-dateutil
, pythonOlder
, requests-mock
, requests-oauthlib
}:
buildPythonPackage rec {
pname = "fitbit";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "orcasgit";
repo = "python-fitbit";
rev = version;
hash = "sha256-1u3h47lRBrJ7EUWBl5+RLGW4KHHqXqqrXbboZdy7VPA=";
};
propagatedBuildInputs = [
python-dateutil
requests-oauthlib
];
checkInputs = [
freezegun
mock
pytestCheckHook
requests-mock
];
pythonImportsCheck = [
"fitbit"
];
meta = with lib; {
description = "Fitbit API Python Client Implementation";
homepage = "https://github.com/orcasgit/python-fitbit";
license = licenses.asl20;
maintainers = with maintainers; [ delroth ];
};
}