# Maintainer: Astro Benzene pkgname=python-pytest-remotedata pkgver=0.3.0 pkgrel=1 pkgdesc="Pytest plugin used for controlling access to data files hosted online" arch=('i686' 'x86_64') url="https://github.com/astropy/pytest-remotedata" license=('BSD') depends=('python-pytest>=3.1' 'python-six') makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/p/pytest-remotedata/pytest-remotedata-${pkgver}.tar.gz") md5sums=('afdb8454cd69dd0de69003af10759d2d') package() { cd ${srcdir}/pytest-remotedata-${pkgver} install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}" install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 rm -rf ${pkgdir}/usr/lib/python3.6/site-packages/tests }