diff options
Diffstat (limited to 'pkgs/development/python-modules/pysmartthings/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pysmartthings/default.nix | 13 |
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" ]; |