community/python-awkward to 1.9.0-1

This commit is contained in:
Kevin Mihelich 2022-09-05 22:18:21 +00:00
parent 6b3b11cd34
commit 52d759f347

View file

@ -2,23 +2,23 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove cuda make/optdepends
# - move python-pyaml to makedepends
# - move python-yaml to makedepends
# - add python-setuptools to makedepends
_pkgname=awkward
pkgname="python-${_pkgname}"
pkgver=1.8.0
pkgrel=2
pkgver=1.9.0
pkgrel=1
pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
url="https://github.com/scikit-hep/awkward-1.0"
url="https://github.com/scikit-hep/awkward"
license=('BSD')
arch=('x86_64')
depends=('python-numpy' 'python-packaging')
makedepends=('cmake' 'git' 'python-build' 'python-installer' 'python-wheel' 'python-pyaml' 'python-setuptools')
makedepends=('cmake' 'git' 'python-build' 'python-installer' 'python-wheel' 'python-yaml' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov' 'python-hist' 'python-pandas' 'python-numexpr' 'python-pyarrow' 'python-scikit-hep-testdata' 'python-vector'
'root' 'pybind11' 'rapidjson')
source=(
"${pkgname}::git+https://github.com/scikit-hep/${_pkgname}-1.0#tag=${pkgver}"
"${pkgname}::git+https://github.com/scikit-hep/${_pkgname}#tag=v${pkgver}"
"${pkgname}-dlpack::git+https://github.com/dmlc/dlpack.git"
"${pkgname}-rapidjson::git+https://github.com/Tencent/rapidjson.git"
"${pkgname}-pybind11::git+https://github.com/pybind/pybind11.git"
@ -57,7 +57,8 @@ build() {
check() {
cd "${pkgname}"
PYTHONPATH="build/lib.linux-${CARCH}-$(get_pyver)" pytest tests || echo 'some tests fail'
local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest || echo 'some tests fail'
}
package() {