summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ff43dff5675c43896f1a23176e08dd7a04379ec (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='python-pyhdfe'
_pkgname=pyhdfe
pkgver=0.2.0
pkgrel=1
pkgdesc='Algorithms for high dimensional fixed effect absorption'
arch=('any')
url='https://github.com/jeffgortmaker/pyhdfe'
license=('MIT')
makedepends=('python-setuptools')
depends=('python-numpy' 'python-scipy')
checkdepends=('python-pytest')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('8cddc5f5a09148d3281fca3c787146a85ecc5a7517be3ae5762bfe507907b7fb')

package() {
  cd "$_pkgname-$pkgver"
  python setup.py install --root=$pkgdir --optimize=1
  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/License.txt"
}

check() {
  cd "$_pkgname-$pkgver"
  pytest pyhdfe/tests/
}