14 buildPythonPackage rec {
15 pname = "withings-api";
19 disabled = pythonOlder "3.6";
21 src = fetchFromGitHub {
23 repo = "python_withings_api";
24 rev = "refs/tags/${version}";
25 hash = "sha256-8cOLHYnodPGk1b1n6xbVyW2iju3cG6MgnzYTKDsP/nw=";
29 substituteInPlace pyproject.toml \
30 --replace 'requests-oauth = ">=0.4.1"' ''' \
31 --replace 'addopts = "--capture no --cov ./withings_api --cov-report html:build/coverage_report --cov-report term --cov-report xml:build/coverage.xml"' '''
38 propagatedBuildInputs = [
51 description = "Library for the Withings Health API";
52 homepage = "https://github.com/vangorra/python_withings_api";
53 license = licenses.mit;
54 maintainers = with maintainers; [ kittywitch ];
55 broken = versionAtLeast pydantic.version "2";