From f58d434f56cc0726c2fbef65951f2632db5e8a35 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Oct 2022 13:42:00 +0200 Subject: [PATCH] python310Packages.pyspark: 3.3.0 -> 3.3.1 --- .../python-modules/pyspark/default.nix | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyspark/default.nix b/pkgs/development/python-modules/pyspark/default.nix index a596a2226c5e..b436eecbcb12 100644 --- a/pkgs/development/python-modules/pyspark/default.nix +++ b/pkgs/development/python-modules/pyspark/default.nix @@ -1,16 +1,23 @@ { lib , buildPythonPackage , fetchPypi +, numpy +, pandas , py4j +, pyarrow +, pythonOlder }: buildPythonPackage rec { pname = "pyspark"; - version = "3.3.0"; + version = "3.3.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-fr6OlQVke00STVqC/KYN/TiRAhz4rWxeyId37uzpLPc="; + hash = "sha256-6Z+n3pK+QGiEv9gxwyuTBqOpneRM/Dmi7vtu0HRF1fo="; }; # pypandoc is broken with pandoc2, so we just lose docs. @@ -25,6 +32,20 @@ buildPythonPackage rec { py4j ]; + passthru.optional-dependencies = { + ml = [ + numpy + ]; + mllib = [ + numpy + ]; + sql = [ + numpy + pandas + pyarrow + ]; + }; + # Tests assume running spark instance doCheck = false; @@ -40,6 +61,6 @@ buildPythonPackage rec { binaryBytecode ]; license = licenses.asl20; - maintainers = [ maintainers.shlevy ]; + maintainers = with maintainers; [ shlevy ]; }; }