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

pkgname=python-bayesian-optimization
pkgver=2.0.0
pkgrel=1
pkgdesc='Bayesian global optimization with gaussian processes'
arch=(any)
url='https://github.com/fmfn/BayesianOptimization'
license=(MIT)
depends=(python-numpy python-scikit-learn python-scipy)
makedepends=(git python-poetry)
source=("git+$url#tag=v$pkgver")
md5sums=('938ce4a0c06517c5e946e87ebe1e4abb')

build() {
  cd BayesianOptimization
  python -m build --wheel --no-isolation
}

package() {
  cd BayesianOptimization

  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim: ts=2 sw=2 et: