nixpkgs/pkgs/development/python-modules/fitbit/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

50 lines
887 B
Nix

{ 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
];
nativeCheckInputs = [
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 ];
};
}