about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2024-09-28 13:57:59 +0200
committerGitHub <noreply@github.com>2024-09-28 13:57:59 +0200
commit2aba8d3c7200d6a2bf42b22119690dd0c5c8baa7 (patch)
tree088125aecf6ceb6dda4bda9c491ae43cdd1bd5e3 /pkgs
parent590ec2408cc025f55284cd138f9882e79b3c9bf6 (diff)
parent17254a0bd40f4cba5d1b7582098993cd56d64130 (diff)
python312Packages.aiowithings: 3.0.3 -> 3.1.0 (#344954)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/aiowithings/default.nix31
1 files changed, 27 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/aiowithings/default.nix b/pkgs/development/python-modules/aiowithings/default.nix
index e2794d241193a..85af5993d8e42 100644
--- a/pkgs/development/python-modules/aiowithings/default.nix
+++ b/pkgs/development/python-modules/aiowithings/default.nix
@@ -14,7 +14,7 @@
 
 buildPythonPackage rec {
   pname = "aiowithings";
-  version = "3.0.3";
+  version = "3.1.0";
   pyproject = true;
 
   disabled = pythonOlder "3.11";
@@ -23,7 +23,7 @@ buildPythonPackage rec {
     owner = "joostlek";
     repo = "python-withings";
     rev = "refs/tags/v${version}";
-    hash = "sha256-YM+7raD5Wp+pC+R4DV92QN5E+TlNoMnt5M+n6Ax0W9k=";
+    hash = "sha256-pTDHbnL5MfcsQFiaRnKTDAoJ1JwwxRUTB6fQsXjIFl0=";
   };
 
   postPatch = ''
@@ -31,9 +31,9 @@ buildPythonPackage rec {
       --replace "--cov" ""
   '';
 
-  nativeBuildInputs = [ poetry-core ];
+  build-system = [ poetry-core ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     aiohttp
     yarl
   ];
@@ -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";