15 buildPythonPackage rec {
16 pname = "aiowithings";
20 disabled = pythonOlder "3.11";
22 src = fetchFromGitHub {
24 repo = "python-withings";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-QHf2UOEU4623Htlaekk7AQldlZOYVQzmqDfHhaMzglI=";
30 substituteInPlace pyproject.toml \
34 build-system = [ poetry-core ];
48 pythonImportsCheck = [ "aiowithings" ];
50 pytestFlagsArray = [ "--snapshot-update" ];
53 # Tests require network access
54 "test_creating_own_session"
59 "test_get_measurement"
61 "test_get_sleep_summary"
64 "test_list_all_subscriptions"
65 "test_list_subscriptions"
66 "test_putting_in_own_session"
70 "test_unexpected_server_response"
74 description = "Module to interact with Withings";
75 homepage = "https://github.com/joostlek/python-withings";
76 changelog = "https://github.com/joostlek/python-withings/releases/tag/v${version}";
77 license = licenses.mit;
78 maintainers = with maintainers; [ fab ];