mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-20 04:02:40 +03:00
Merge pull request #49130 from veprbl/pr/pyarrow_darwin_hydra_fix
pythonPackages.pyarrow: fix running tests on hydra
This commit is contained in:
commit
e438125d97
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, JPype1, numpy, pandas, pytest, pytestrunner, pkgconfig, setuptools_scm, six }:
|
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, numpy, pandas, pytest, pkgconfig, setuptools_scm, six }:
|
||||||
|
|
||||||
let
|
let
|
||||||
_arrow-cpp = arrow-cpp.override { inherit python; };
|
_arrow-cpp = arrow-cpp.override { inherit python; };
|
||||||
@ -13,12 +13,13 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake cython pkgconfig setuptools_scm ];
|
nativeBuildInputs = [ cmake cython pkgconfig setuptools_scm ];
|
||||||
propagatedBuildInputs = [ numpy six ] ++ lib.optionals (!isPy3k) [ futures ];
|
propagatedBuildInputs = [ numpy six ] ++ lib.optionals (!isPy3k) [ futures ];
|
||||||
checkInputs = [ pandas pytest pytestrunner JPype1 ];
|
checkInputs = [ pandas pytest ];
|
||||||
|
|
||||||
PYARROW_BUILD_TYPE = "release";
|
PYARROW_BUILD_TYPE = "release";
|
||||||
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib";
|
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib";
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
rm pyarrow/tests/test_jvm.py
|
||||||
rm pyarrow/tests/test_hdfs.py
|
rm pyarrow/tests/test_hdfs.py
|
||||||
rm pyarrow/tests/test_cuda.py
|
rm pyarrow/tests/test_cuda.py
|
||||||
|
|
||||||
@ -43,6 +44,14 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
setupPyBuildFlags = ["--with-parquet" ];
|
setupPyBuildFlags = ["--with-parquet" ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
mv pyarrow/tests tests
|
||||||
|
rm -rf pyarrow
|
||||||
|
mkdir pyarrow
|
||||||
|
mv tests pyarrow/tests
|
||||||
|
pytest -v
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A cross-language development platform for in-memory data";
|
description = "A cross-language development platform for in-memory data";
|
||||||
homepage = https://arrow.apache.org/;
|
homepage = https://arrow.apache.org/;
|
||||||
|
Loading…
Reference in New Issue
Block a user