git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #49130 from veprbl/pr/pyarrow_darwin_hydra_fix

pythonPackages.pyarrow: fix running tests on hydra

commite438125d979151674599ceaf1d05fbd776e476a0 authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 26 Oct 2018, 09:18 (8 years ago) parent8afb3b6e76082a
1 file changed+11−2
pkgs/development/python-modules/pyarrow/default.nix+11−2
pkgs/development/python-modules/pyarrow/default.nix+11−2
@@ -1,4 +1,4 @@
1−{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, JPype1, numpy, pandas, pytest, pytestrunner, pkgconfig, setuptools_scm, six }:
1+{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, numpy, pandas, pytest, pkgconfig, setuptools_scm, six }:
22
33let
44 _arrow-cpp = arrow-cpp.override { inherit python; };
@@ -13,12 +13,13 @@ buildPythonPackage rec {
1313
1414 nativeBuildInputs = [ cmake cython pkgconfig setuptools_scm ];
1515 propagatedBuildInputs = [ numpy six ] ++ lib.optionals (!isPy3k) [ futures ];
16− checkInputs = [ pandas pytest pytestrunner JPype1 ];
16+ checkInputs = [ pandas pytest ];
1717
1818 PYARROW_BUILD_TYPE = "release";
1919 PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib";
2020
2121 preCheck = ''
22+ rm pyarrow/tests/test_jvm.py
2223 rm pyarrow/tests/test_hdfs.py
2324 rm pyarrow/tests/test_cuda.py
2425
@@ -43,6 +44,14 @@ buildPythonPackage rec {
4344
4445 setupPyBuildFlags = ["--with-parquet" ];
4546
47+ checkPhase = ''
48+ mv pyarrow/tests tests
49+ rm -rf pyarrow
50+ mkdir pyarrow
51+ mv tests pyarrow/tests
52+ pytest -v
53+ '';
54+
4655 meta = with lib; {
4756 description = "A cross-language development platform for in-memory data";
4857 homepage = https://arrow.apache.org/;