Skip to content

Commit

Permalink
python312Packages.aiowithings: 3.0.3 -> 3.1.0 (#344954)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Sep 28, 2024
2 parents 590ec24 + 17254a0 commit 2aba8d3
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions pkgs/development/python-modules/aiowithings/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

buildPythonPackage rec {
pname = "aiowithings";
version = "3.0.3";
version = "3.1.0";
pyproject = true;

disabled = pythonOlder "3.11";
Expand All @@ -23,17 +23,17 @@ buildPythonPackage rec {
owner = "joostlek";
repo = "python-withings";
rev = "refs/tags/v${version}";
hash = "sha256-YM+7raD5Wp+pC+R4DV92QN5E+TlNoMnt5M+n6Ax0W9k=";
hash = "sha256-pTDHbnL5MfcsQFiaRnKTDAoJ1JwwxRUTB6fQsXjIFl0=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov" ""
'';

nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];

propagatedBuildInputs = [
dependencies = [
aiohttp
yarl
];
Expand All @@ -47,6 +47,29 @@ buildPythonPackage rec {

pythonImportsCheck = [ "aiowithings" ];

pytestFlagsArray = [ "--snapshot-update" ];

disabledTests = [
# Tests require network access
"test_creating_own_session"
"test_error_codes"
"test_get_activities"
"test_get_devices"
"test_get_goals"
"test_get_measurement"
"test_get_new_device"
"test_get_sleep_summary"
"test_get_sleep"
"test_get_workouts"
"test_list_all_subscriptions"
"test_list_subscriptions"
"test_putting_in_own_session"
"test_revoking"
"test_subscribing"
"test_timeout"
"test_unexpected_server_response"
];

meta = with lib; {
description = "Module to interact with Withings";
homepage = "https://github.com/joostlek/python-withings";
Expand Down

0 comments on commit 2aba8d3

Please sign in to comment.