# Maintainer: Guillaume Horel pkgname=('python-arch') _module='arch' pkgver='4.8.1' pkgrel=1 pkgdesc="ARCH models in Python." url="https://pypi.python.org/pypi/arch/4.1" depends=('python' 'python-numpy' 'python-pandas' 'python-scipy' 'python-statsmodels') checkdepends=('python-pytest' 'python-seaborn') makedepends=('cython' 'python-setuptools') license=('custom:University of Illinois/NCSA Open Source License') arch=('x86_64') source=("https://github.com/bashtage/arch/archive/${pkgver}.tar.gz") sha256sums=('0f86ee3da9c023155816680027238a82fedf25c79a1eb12be19f1f025eaaa3e3') build() { cd "${srcdir}/${_module}-${pkgver}" python setup.py build_ext --inplace } package() { cd "${srcdir}/${_module}-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -D -m644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md" } check() { cd "${srcdir}/${_module}-${pkgver}" PYTHONPATH=.. py.test arch }