43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
# Template file for 'python3-pandas'
|
|
pkgname=python3-pandas
|
|
version=1.5.2
|
|
revision=1
|
|
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-xdist python3-pytest-asyncio python3-hypothesis $depends"
|
|
short_desc="Python3 data analysis library"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
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=d86005633c52dd704f1a92bed4e50949596760a3a40ecfe2d7a0a0d0a0e16679
|
|
# Builds seem to sometimes have missing symbol problems;
|
|
# the intermittent nature suggests this might be a race
|
|
disable_parallel_build=yes
|
|
|
|
pre_build() {
|
|
# Try to avoid i686 build failure
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*)
|
|
CFLAGS="${CFLAGS// -g/ -g1}"
|
|
CXXFLAGS="${CXXFLAGS// -g/ -g1}"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
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 -n $XBPS_MAKEJOBS \
|
|
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 and not test_show_versions'
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|