Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
998 B · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ 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="; };
postPatch = '' substituteInPlace fitbit_tests/test_api.py \ --replace-fail assertRaisesRegexp assertRaisesRegex '';
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 = [ ]; };}