gnu: apache-arrow: Update to 10.0.0.

* gnu/packages/databases.scm (apache-arrow): Update to 10.0.0.
(python-pyarrow)[arguments]: Remove 'patch-cmake-variables phase; do not
bundle headers.
[propagated-inputs]: Do not use labels.
[native-inputs]: Remove labels.
This commit is contained in:
Ricardo Wurmus 2022-11-04 00:02:28 +01:00
parent d206b29c29
commit 2db2a92760
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -4167,7 +4167,7 @@ the SQL language using a syntax that reflects the resulting query.")
(define-public apache-arrow (define-public apache-arrow
(package (package
(name "apache-arrow") (name "apache-arrow")
(version "9.0.0") (version "10.0.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -4177,7 +4177,7 @@ the SQL language using a syntax that reflects the resulting query.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1l76q7944jyx22vjkk12hxb3nadgiivc3x8ml4mg619v9xxagc2v")))) "1mx2siffbggz26c8j2xma7cwa65khj8nswy04ajczgwvj32rg1ah"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f `(#:tests? #f
@ -4432,40 +4432,23 @@ algorithm implementations.")
(add-after 'unpack 'make-git-checkout-writable (add-after 'unpack 'make-git-checkout-writable
(lambda _ (lambda _
(for-each make-file-writable (find-files ".")))) (for-each make-file-writable (find-files "."))))
(add-before 'install 'patch-cmake-variables
(lambda* (#:key inputs #:allow-other-keys)
;; Replace cmake locations with hardcoded guix links for the
;; underlying C++ library and headers. This is a pretty awful
;; hack.
(substitute* "cmake_modules/FindParquet.cmake"
(("# Licensed to the Apache Software Foundation" m)
(string-append "set(PARQUET_INCLUDE_DIR \""
(assoc-ref inputs "apache-arrow:include")
"/share/include\")\n" m))
(("find_package_handle_standard_args" m)
(string-append "set(PARQUET_LIB_DIR \""
(assoc-ref inputs "apache-arrow:lib")
"/lib\")\n" m)))))
(add-before 'install 'patch-parquet-library
(lambda _
(substitute* "CMakeLists.txt"
(("parquet_shared") "parquet"))))
(add-before 'install 'set-PYARROW_WITH_PARQUET (add-before 'install 'set-PYARROW_WITH_PARQUET
(lambda _ (lambda _
(setenv "PYARROW_BUNDLE_ARROW_CPP_HEADERS" "0")
(setenv "PYARROW_WITH_PARQUET" "1")))))) (setenv "PYARROW_WITH_PARQUET" "1"))))))
(propagated-inputs (propagated-inputs
`(("apache-arrow:lib" ,apache-arrow "lib") (list (list apache-arrow "lib")
("apache-arrow:include" ,apache-arrow "include") (list apache-arrow "include")
("python-numpy" ,python-numpy) python-numpy
("python-pandas" ,python-pandas) python-pandas
("python-six" ,python-six))) python-six))
(native-inputs (native-inputs
`(("cmake" ,cmake-minimal) (list cmake-minimal
("pkg-config" ,pkg-config) pkg-config
("python-cython" ,python-cython) python-cython
("python-pytest" ,python-pytest) python-pytest
("python-pytest-runner" ,python-pytest-runner) python-pytest-runner
("python-setuptools-scm" ,python-setuptools-scm))) python-setuptools-scm))
(outputs '("out")) (outputs '("out"))
(home-page "https://arrow.apache.org/docs/python/") (home-page "https://arrow.apache.org/docs/python/")
(synopsis "Python bindings for Apache Arrow") (synopsis "Python bindings for Apache Arrow")