summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b8a2b9026ad218add2d1aa9efb7efacab1c6ed4 (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
36
37
# Maintainer: Aleksandar Trifunovic akstrfn at gmail dot com
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>

pkgname=python-nevergrad
pkgver=1.0.5
pkgrel=1
pkgdesc='Gradient-free optimization'
arch=('any')
url='https://github.com/facebookresearch/nevergrad'
license=(MIT)
depends=('mypy' 'python-bayesian-optimization' 'python-cma' 'python-coverage'
         'python-joblib' 'python-matplotlib' 'python-nose'
         'python-nose-timer' 'python-numpy' 'python-pandas'
         'python-pyproj')
makedepends=('git' 'python-setuptools' 'python-pytest')
source=("git+$url#tag=$pkgver")
md5sums=('aecae1ae4453d68944dc6088ea20ab01')

build() {
  cd nevergrad
  python setup.py build
}

# tests require some packages that are not in the aur such as fcmaes and maybe
# some others
# check() {
#   cd "${pkgname#*-}-$pkgver"
#   pytest
# }

package() {
  cd nevergrad
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim: ts=2 sw=2 et: