blob: 9d90434d91634ea90cb31fe17fea70f126f34741 (
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
|
# Maintainer: Jesse R Codling <codling at umich dot edu>
pkgname='python-optuna-integration'
_module='optuna-integration'
pkgver=4.7.0
pkgrel=1
pkgdesc="Optuna integration modules with third-party libraries."
url="https://optuna-integration.readthedocs.io/"
depends=('python' 'python-optuna')
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('custom:MIT License')
arch=('any')
source=("https://github.com/optuna/${_module}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('b30345a458d7f14e181cd2801a2429f266bba47c0083a194673bd8478fbdc604')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_module}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|