From 5b958f0c226edd2a90d1f776cd7db0fdf47276e3 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Thu, 27 Jan 2022 07:44:35 +0000 Subject: python3Packages.apache-beam: fix build --- pkgs/development/python-modules/apache-beam/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/development/python-modules/apache-beam') diff --git a/pkgs/development/python-modules/apache-beam/default.nix b/pkgs/development/python-modules/apache-beam/default.nix index 44748f2fdb05f..f3e47bfc90107 100644 --- a/pkgs/development/python-modules/apache-beam/default.nix +++ b/pkgs/development/python-modules/apache-beam/default.nix @@ -57,6 +57,12 @@ buildPythonPackage rec { ./fix-cython.patch ]; + # See https://github.com/NixOS/nixpkgs/issues/156957. + postPatch = '' + substituteInPlace setup.py \ + --replace "typing-extensions>=3.7.0,<4" "typing-extensions" + ''; + sourceRoot = "source/sdks/python"; nativeBuildInputs = [ -- cgit 1.4.1