From ebcf6f19125b99aa27d607ec6bdc578f013bef5c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Oct 2021 12:09:49 +0200 Subject: [PATCH] python3Packages.hass-nabucasa: relax cryptography constraint --- .../python-modules/hass-nabucasa/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 90fd6bf50185..48788537a660 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -24,6 +24,13 @@ buildPythonPackage rec { sha256 = "sha256-0E8eiHzqbxHbtAd97MbvFMRDWTu25E9x/44oNGC4mUM="; }; + postPatch = '' + sed -i 's/"acme.*"/"acme"/' setup.py + substituteInPlace setup.py \ + --replace "cryptography>=2.8,<4.0" "cryptography" \ + --replace "snitun==" "snitun>=" + ''; + propagatedBuildInputs = [ acme aiohttp @@ -40,12 +47,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - sed -i 's/"acme.*"/"acme"/' setup.py - substituteInPlace setup.py \ - --replace "snitun==" "snitun>=" - ''; - pythonImportsCheck = [ "hass_nabucasa" ]; meta = with lib; {