summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6859d2cfde633f9bb7d41d649d274f90a4f5034b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Astro Benzene <universebenzene at sina dot com>
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
}