uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/development/python-modules/pyspark/default.nix
Normal file
41
pkgs/development/python-modules/pyspark/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, py4j
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyspark";
|
||||
version = "3.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-C4E1kmLsbprHjDUzROfeAmAn0UDG3vlJ/w2Aq3D4mlQ=";
|
||||
};
|
||||
|
||||
# pypandoc is broken with pandoc2, so we just lose docs.
|
||||
postPatch = ''
|
||||
sed -i "s/'pypandoc'//" setup.py
|
||||
|
||||
substituteInPlace setup.py \
|
||||
--replace py4j==0.10.9.3 'py4j>=0.10.9,<0.11'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
py4j
|
||||
];
|
||||
|
||||
# Tests assume running spark instance
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyspark"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for Apache Spark";
|
||||
homepage = "https://github.com/apache/spark/tree/master/python";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.shlevy ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue