summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorJoshua Skrzypek <jskrzypek@gmail.com>2020-11-23 18:15:59 -0500
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-11-23 16:19:14 -0800
commitcde89e3ecf8f8361707c61f6b796f7c497e04f89 (patch)
tree0726237052169f9f4cc551bee7d625fc39fec65b /pkgs
parentcc5a3cb5470160520d60eabe65ebfdd60b9ec6a6 (diff)
python3Packages.pyspark: Fix out of date postPatch
Pyspark switched to pinning py4j==0.10.9 with v3.0.0 - see this commit: https://github.com/apache/spark/\ commit/fc4e56a54c15e20baf085e6061d3d83f5ce1185d This meant that since the bump to pyspark v3.0.0 - in this commit: https://github.com/NixOS/nixpkgs/\ commit/5181547ae6624b462919a806c4d0888e6e4630f4 - the patch was no longer matching on the 'py4j==0.10.7' string that was working previously. The failing patch went unnoticed previously because the version of py4j pinned by pyspark>=3.0.0 was the same as the py4j provided by nixpkgs. However, a recent PR (#101636) bumped the version of py4j to 0.10.9.1 in this commit: https://github.com/NixOS/nixpkgs/\ commit/43a91282d66223c5cb978d53fbe1033f56dd7f2b which caused the version pinned by pyspark to no longer match the version provided by nixpkgs. FWIW, @jonringer flagged this issue on another PR that tried to bump py4j: #100623. My solution here was to upgrade the patch's target string to match the version found in pyspark's current setup.py.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pyspark/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pyspark/default.nix b/pkgs/development/python-modules/pyspark/default.nix
index d71cf2a0f437..d181d6a29d90 100644
--- a/pkgs/development/python-modules/pyspark/default.nix
+++ b/pkgs/development/python-modules/pyspark/default.nix
@@ -13,8 +13,7 @@ buildPythonPackage rec {
postPatch = ''
sed -i "s/'pypandoc'//" setup.py
- # Current release works fine with py4j 0.10.8.1
- substituteInPlace setup.py --replace py4j==0.10.7 'py4j>=0.10.7,<0.11'
+ substituteInPlace setup.py --replace py4j==0.10.9 'py4j>=0.10.9,<0.11'
'';
propagatedBuildInputs = [ py4j ];