blob: 62ba4c11fa5af39e7882a4d0093be9d7290b3bae (
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
38
39
40
41
42
43
44
|
# Maintainer: Juacrumar <juacrumar at lairen dot eu>
pkgname=python-vegasflow
_name=vegasflow
pkgver=1.3.0
pkgrel=1
pkgdesc='Monte Carlo integration library written in Python and based on the TensorFlow framework'
arch=('any')
url="https://vegasflow.readthedocs.io/"
license=('Apache')
makedepends=("python-setuptools")
depends=("python>=3.9"
"python-tensorflow"
"python-joblib"
"python-numpy")
optdepends=("python-cffi: interfacing vegasflow with C code"
"python-tensorflow-cuda: GPU support"
"python-pdfflow: PDF interpolation with TensorFlow"
)
BUILDENV+=('!check') # Don't check by default!
checkdepends=("python-pytest")
provides=("vegasflow")
changelog=
source=("https://github.com/N3PDF/vegasflow/archive/v${pkgver}.tar.gz")
md5sums=("5c43df381a487b7d5a6b5c59dd3058b6")
prepare() {
cd "$_name-$pkgver"
}
check() {
cd "$_name-$pkgver"
pytest
}
build() {
cd "$_name-$pkgver"
python setup.py build
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=2 --skip-build
}
|