Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pyspark / default.nix
blob2d09a0a0c3b0862a58e6932282c158ac7122c070
1 { buildPythonPackage, fetchPypi, lib, py4j }:
3 buildPythonPackage rec {
4   pname = "pyspark";
5   version = "3.0.2";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "d4f2ced43394ad773f7b516a4bbcb5821a940462a17b1a25f175c83771b62ebc";
10   };
12   # pypandoc is broken with pandoc2, so we just lose docs.
13   postPatch = ''
14     sed -i "s/'pypandoc'//" setup.py
16     substituteInPlace setup.py --replace py4j==0.10.9 'py4j>=0.10.9,<0.11'
17   '';
19   propagatedBuildInputs = [ py4j ];
21   # Tests assume running spark...
22   doCheck = false;
24   meta = with lib; {
25     description = "Apache Spark";
26     homepage = "https://github.com/apache/spark/tree/master/python";
27     license = licenses.asl20;
28     maintainers = [ maintainers.shlevy ];
29   };