about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-08 02:12:31 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-12-09 17:51:14 +0100
commit11c3032b987970198e1f4a2f5ad71cdbdf0afd36 (patch)
treee3299538c4fe2d497fbc5393ad1ac2d3a2f9a4b4 /pkgs
parentc3d64d2d589290e537dea71353187c6ce32d8e58 (diff)
downloadnixlib-11c3032b987970198e1f4a2f5ad71cdbdf0afd36.tar
nixlib-11c3032b987970198e1f4a2f5ad71cdbdf0afd36.tar.gz
nixlib-11c3032b987970198e1f4a2f5ad71cdbdf0afd36.tar.bz2
nixlib-11c3032b987970198e1f4a2f5ad71cdbdf0afd36.tar.lz
nixlib-11c3032b987970198e1f4a2f5ad71cdbdf0afd36.tar.xz
nixlib-11c3032b987970198e1f4a2f5ad71cdbdf0afd36.tar.zst
nixlib-11c3032b987970198e1f4a2f5ad71cdbdf0afd36.zip
python311Packages.pysmartthings: disable tests when aiohttp>=3.9.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pysmartthings/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pysmartthings/default.nix b/pkgs/development/python-modules/pysmartthings/default.nix
index 369cd6ecea6e..89b6ba537aec 100644
--- a/pkgs/development/python-modules/pysmartthings/default.nix
+++ b/pkgs/development/python-modules/pysmartthings/default.nix
@@ -21,20 +21,23 @@ buildPythonPackage rec {
     hash = "sha256-r+f2+vEXJdQGDlbs/MhraFgEmsAf32PU282blLRLjzc=";
   };
 
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0"
+  '';
+
   propagatedBuildInputs = [
     aiohttp
   ];
 
+  # https://github.com/andrewsayre/pysmartthings/issues/80
+  doCheck = lib.versionOlder aiohttp.version "3.9.0";
+
   nativeCheckInputs = [
     pytest-asyncio
     pytestCheckHook
   ];
 
-  postPatch = ''
-    substituteInPlace setup.py \
-      --replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0"
-  '';
-
   pythonImportsCheck = [
     "pysmartthings"
   ];