blob: e4acbf46b01eae0c0dcc0613a1c510a21cee505e (
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
|
# Maintainer: Alexandre Bury <alexandre.bury@gmail.com>
pkgname=python-polars
pkgver=0.14.12
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')
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-}
source=("https://github.com/pola-rs/polars/archive/refs/tags/py-polars-v$pkgver.tar.gz")
b2sums=("6a714375ae9c74725f9956761a39df058e5dacc225ac3900f845333df9273d4f4a74c699c6097f81e2d51119409dba2fcd2a5a59fd49555b6af8966d7ddb9fe5")
build() {
rm wheels -rf
cd polars-py-polars-v$pkgver/py-polars
maturin build -o ../../wheels --release
}
package() {
python -m installer -d "$pkgdir" ./wheels/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" polars-py-polars-v$pkgver/LICENSE
}
|