From 6957f6cb1efd2a3b9b85683bd2b3cae6c0b1068c Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 14 Sep 2021 11:04:45 -0700 Subject: [PATCH] python3Packages.google-resumable-media: fix google-crc32c bounds --- .../python-modules/google-resumable-media/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/google-resumable-media/default.nix b/pkgs/development/python-modules/google-resumable-media/default.nix index f29604c9da30..854b6304e7a8 100644 --- a/pkgs/development/python-modules/google-resumable-media/default.nix +++ b/pkgs/development/python-modules/google-resumable-media/default.nix @@ -19,6 +19,11 @@ buildPythonPackage rec { sha256 = "36d682161fdcbfa29681212c210fabecbf6849a505a0cbc54b7f70a10a5278a2"; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "google-crc32c >= 1.0, <= 1.1.2" "google-crc32c~=1.0" + ''; + propagatedBuildInputs = [ google-auth google-crc32c requests ]; checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];