summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-smarttub/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-24 23:10:34 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-11-24 23:10:34 +0100
commita9868c307d849900c33bea8f48939d0cb3d48235 (patch)
tree973e9110d2485c335ed627221adfbba0deb0423a /pkgs/development/python-modules/python-smarttub/default.nix
parent1799f8e87beb9d88c31401d53b92d245fc97857e (diff)
downloadnixpkgs-a9868c307d849900c33bea8f48939d0cb3d48235.tar
nixpkgs-a9868c307d849900c33bea8f48939d0cb3d48235.tar.gz
nixpkgs-a9868c307d849900c33bea8f48939d0cb3d48235.tar.bz2
nixpkgs-a9868c307d849900c33bea8f48939d0cb3d48235.tar.lz
nixpkgs-a9868c307d849900c33bea8f48939d0cb3d48235.tar.xz
nixpkgs-a9868c307d849900c33bea8f48939d0cb3d48235.tar.zst
nixpkgs-a9868c307d849900c33bea8f48939d0cb3d48235.zip
python3Packages.python-smarttub: relax aiohttp constraint
Diffstat (limited to 'pkgs/development/python-modules/python-smarttub/default.nix')
-rw-r--r--pkgs/development/python-modules/python-smarttub/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/python-smarttub/default.nix b/pkgs/development/python-modules/python-smarttub/default.nix
index b4c994b2456..c6854084429 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";