blob: dcb5c842fe13710ffc03a928dd21e142995bcd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Alexandre Bury <alexandre.bury@gmail.com>
pkgname=python-polars
pkgver=1.4.0
pkgrel=1
pkgdesc="Blazingly fast DataFrames library using Apache Arrow Columnar Format as memory model"
arch=("x86_64")
url="https://www.pola.rs/"
license=('MIT')
depends=('python' 'python-numpy')
options=('!lto')
optdepends=('python-pandas: for interoperability with pandas frames'
'python-pyarrow: for interoperability with arrow types'
'python-pytz: to enable conversion to python datetimes with timezones'
'python-fsspec: to transparently open files locally or remotely')
makedepends=('maturin' 'rust-nightly' 'cmake' 'python-installer')
_name=${pkgname#python-}
_tag="py-$pkgver"
source=("https://github.com/pola-rs/polars/archive/refs/tags/$_tag.tar.gz")
b2sums=("c0bef4b7e9e53f3f4a4ae7337ecc170057ba86519509aac265546d241a9c69d49d696fec24b07819ac15494c0d7978ebfb82e69ac6daf68ffb1f1d2c98742831")
prepare() {
cd polars-$_tag/py-polars
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
rm wheels -rf
cd polars-$_tag/py-polars
maturin build -o ../../wheels --release
}
package() {
python -m installer -d "$pkgdir" ./wheels/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" polars-$_tag/LICENSE
}
|