blob: 30e4f81ac61b2952f9e203fefa71b01d717a01df (
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
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=('python-fastparquet')
_module='fastparquet'
pkgver='0.1.5'
pkgrel=1
pkgdesc="A python implementation of the parquet format."
url="https://github.com/dask/fastparquet"
checkdepends=('python-pytest'
'python-snappy'
'python-lz4')
depends=('python' 'python-numba'
'python-numpy'
'python-thrift')
makedepends=('cython' 'python-setuptools')
optdepends=('python-snappy'
'python-lz4'
'python-lzo'
'python-brotli'
'python-zstandard')
license=('Apache')
arch=('x86_64')
source=("https://github.com/dask/fastparquet/archive/$pkgver.tar.gz"
"zstandard-0.9.patch")
sha256sums=('017c9812cc0180d10e134557a29296a56b40b32bb63c62f44a781e818792bf29'
'08f34d49dc91c308a910347c6d141630eefb73d9e13284c0ace9893a9c834b39')
prepare() {
cd "${srcdir}"
patch -p0 < ../zstandard-0.9.patch
}
build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
}
check() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build_ext --inplace
pytest
}
package() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
|