summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ef235cc52f7613651801a2b2e2ca9296a2fc020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgname=python2-emcee
pkgver=3.0.2
pkgrel=1
pkgdesc="Kick ass affine-invariant ensemble MCMC sampling"
arch=('any')
url="http://emcee.readthedocs.io/"
license=('MIT')
depends=('python2-numpy')
optdepends=('python2-tqdm: For progress bars'
            'python2-h5py: For HDF5 backend')
makedepends=('python2-setuptools')
checkdepends=('python2-pytest' 'python2-scipy' 'python2-h5py')
source=("https://files.pythonhosted.org/packages/source/e/emcee/emcee-${pkgver}.tar.gz")
md5sums=('24b3bea970457d3cd14d37c406df68d7')

build () {
    cd ${srcdir}/emcee-${pkgver}

    python2 setup.py build
}

check(){
    cd ${srcdir}/emcee-${pkgver}

    pytest2
}

package() {
    cd ${srcdir}/emcee-${pkgver}

    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
    install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
    python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
}