From a9868c307d849900c33bea8f48939d0cb3d48235 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 24 Nov 2021 23:10:34 +0100 Subject: [PATCH] python3Packages.python-smarttub: relax aiohttp constraint --- .../python-modules/python-smarttub/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/python-smarttub/default.nix b/pkgs/development/python-modules/python-smarttub/default.nix index b4c994b24560..c68540844298 100644 --- a/pkgs/development/python-modules/python-smarttub/default.nix +++ b/pkgs/development/python-modules/python-smarttub/default.nix @@ -14,6 +14,8 @@ buildPythonPackage rec { pname = "python-smarttub"; version = "0.0.27"; + format = "setuptools"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { @@ -36,7 +38,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "smarttub" ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "aiohttp~=3.7.3" "aiohttp>=3.7.4,<4" + ''; + + pythonImportsCheck = [ + "smarttub" + ]; meta = with lib; { description = "Python API for SmartTub enabled hot tubs";