diff --git a/pkgs/development/python-modules/chalice/default.nix b/pkgs/development/python-modules/chalice/default.nix index d309bc71731b..052120d893d0 100644 --- a/pkgs/development/python-modules/chalice/default.nix +++ b/pkgs/development/python-modules/chalice/default.nix @@ -24,15 +24,22 @@ buildPythonPackage rec { pname = "chalice"; - version = "1.26.6"; + version = "1.27.1"; src = fetchFromGitHub { owner = "aws"; repo = pname; rev = version; - sha256 = "sha256-6Y5pJg6N/F97zvkyo4r6MoThi79kI53AvlHNOmOCpFA="; + sha256 = "sha256-Qz8kYXu2NmcgtW8GbmLPfB4BOearEycE6EMmQRXmWeI="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "attrs>=19.3.0,<21.5.0" "attrs" \ + --replace "pip>=9,<22.2" "pip" \ + --replace "typing==3.6.4" "typing" + ''; + propagatedBuildInputs = [ attrs botocore @@ -58,13 +65,6 @@ buildPythonPackage rec { websocket-client ]; - postPatch = '' - sed -i setup.py -e "/pip>=/c\'pip'," - substituteInPlace setup.py \ - --replace "typing==3.6.4" "typing" \ - --replace "jmespath>=0.9.3,<1.0.0" "jmespath>=0.9.3,<2.0.0" - ''; - disabledTestPaths = [ # Don't check the templates and the sample app "chalice/templates"