blob: d931df4a301375946f12a76eb9bdd81fdadeb1d6 (
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
|
# Maintainer: Juacrumar <juacrumar at lairen dot eu>
pkgname=python-pdfflow
_name=pdfflow
pkgver=1.2.1
pkgrel=1
pkgdesc='Parton distribution function interpolation library written in Python and based on the TensorFlow framework'
arch=('any')
url="https://pdfflow.readthedocs.io/"
license=('Apache')
makedepends=("python-setuptools")
depends=("python>=3.7"
"python-numpy"
"python-pyaml"
"python-tensorflow"
)
optdepends=("python-tensorflow-cuda: GPU support"
"lhapdf: provides PDF files in the LHAPDF format"
"python-vegasflow: MonteCarlo library to run examples"
)
# checkdepends=("python-pytest")
provides=("pdfflow")
changelog=
source=("https://github.com/N3PDF/pdfflow/archive/v${pkgver}.tar.gz")
md5sums=("b0e8e7207c5ea62b41f316ae15bea006")
prepare() {
cd "$_name-$pkgver"
}
build() {
cd "$_name-$pkgver"
python setup.py build
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=2 --skip-build
}
|