summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3763a6b94b404073370e2e258741be0a4105512 (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
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-pybobyqa
_name=Py-BOBYQA
pkgver=1.3
pkgrel=3
pkgdesc="Python-based Derivative-Free Optimization with Bound Constraints"
arch=(any)
url="https://github.com/numericalalgorithmsgroup/$_name"
license=()
groups=()
depends=(python-numpy python-scipy python-pandas)
makedepends=(python-build python-installer)
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=(7b0b27b7b9a7cfef94557c8832c0c30757e86764e32878677427381f0691a8fb)
build() {
    cd "$srcdir/$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}