36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'python3-pandas'
|
|
pkgname=python3-pandas
|
|
version=1.2.4
|
|
revision=1
|
|
wrksrc="pandas-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-Cython python3-numpy"
|
|
makedepends="python3-devel python3-numpy python3-dateutil python3-pytz"
|
|
depends="python3-numpy python3-dateutil python3-pytz"
|
|
checkdepends="python3-pytest python3-hypothesis $depends"
|
|
short_desc="Python3 data analysis library"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://pandas.pydata.org/"
|
|
changelog="https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html"
|
|
distfiles="https://github.com/pandas-dev/pandas/archive/v${version}.tar.gz"
|
|
checksum=544aac5ad33db4fcb091f9b99603e30c049fc4c3622949c1c807d597eceb82bb
|
|
|
|
pre_build() {
|
|
# setup.py allows a -j argument to parallelize builds
|
|
make_build_args+=" ${makejobs}"
|
|
}
|
|
|
|
do_check() {
|
|
# The test_raw_roundtrip relies on a clipboard
|
|
# S3 tests seem to require python3-pytest-xdist
|
|
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest pandas \
|
|
--skip-slow --skip-network --skip-db -x -r EX \
|
|
--ignore pandas/tests/io/parser/test_network.py \
|
|
-m 'not single' -k 'not test_raw_roundtrip and not _s3'
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|