diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 1739183c3a8..074085bf8f7 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -15,6 +15,7 @@ buildPythonPackage rec { postPatch = '' sed -i 's/"acme.*"/"acme"/' setup.py + sed -i 's/"attrs.*"/"attrs"/' setup.py sed -i 's/"cryptography.*"/"cryptography"/' setup.py ''; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index bc0622e4f55..147ea06434b 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -87,8 +87,10 @@ in with py.pkgs; buildPythonApplication rec { postPatch = '' substituteInPlace setup.py \ --replace "aiohttp==3.7.1" "aiohttp>=3.6.3" \ + --replace "attrs==19.3.0" "attrs>=19.3.0" \ --replace "bcrypt==3.1.7" "bcrypt>=3.1.7" \ --replace "cryptography==3.2" "cryptography" \ + --replace "pip>=8.0.3,<20.3" "pip" \ --replace "requests==2.25.0" "requests>=2.24.0" \ --replace "ruamel.yaml==0.15.100" "ruamel.yaml>=0.15.100" substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"' @@ -172,6 +174,8 @@ in with py.pkgs; buildPythonApplication rec { "test_device_tracker_not_home" # Racy https://github.com/home-assistant/core/issues/41425 "test_cached_event_message" + # ValueError: count must be a positive integer (got 0) + "test_media_view" ]; preCheck = ''