2024-11-12 10:30:49 +00:00

42 lines
1.1 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-patsy
pkgver=1.0.0
pkgrel=0
pkgdesc="Describing statistical models in Python using symbolic formulas"
url="https://github.com/pydata/patsy"
arch="noarch"
license="BSD-2-Clause"
depends="
python3
py3-numpy
py3-scipy
py3-six
"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest-xdist py3-pytest-cov"
subpackages="$pkgname-pyc"
source="https://github.com/pydata/patsy/archive/v$pkgver/patsy-$pkgver.tar.gz"
builddir="$srcdir/patsy-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
a518e792ae83eb9c2a7692b89c9fdfbd2c12ea55d4a401b14eda4f113b4d9b048d4a067b9c4ff93bd5f7b6529ad6c612c7f1c336a978579edccfbb54a32ca1b9 patsy-1.0.0.tar.gz
"