mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-statsmodels
|
|
pkgver=0.13.5
|
|
pkgrel=0
|
|
pkgdesc="Statistical modeling and econometrics in Python"
|
|
url="https://www.statsmodels.org/"
|
|
arch="all !s390x" # py3-joblib
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
python3
|
|
py3-numpy
|
|
py3-packaging
|
|
py3-pandas
|
|
py3-patsy
|
|
py3-scipy
|
|
"
|
|
makedepends="cython py3-setuptools_scm py3-numpy-dev"
|
|
checkdepends="py3-pytest py3-pytest-cov py3-joblib py3-matplotlib"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/statsmodels/statsmodels-$pkgver.tar.gz"
|
|
builddir="$srcdir/statsmodels-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$(echo build/lib*)" python3 -P -c 'import statsmodels; statsmodels.test()'
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
|
|
find "$pkgdir"/usr/lib/python3.*/site-packages/statsmodels -type d -name "tests" -exec rm -rf {} \+
|
|
}
|
|
|
|
sha512sums="
|
|
9aeeea80c69f52459140179523a0155429834b2951325c9781b28f8c4cbbd0593ff1867e2212078f2b898e4da953689c2fe78183d3c7959caa874e9d758b4ea4 py3-statsmodels-0.13.5.tar.gz
|
|
"
|