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