summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce4fb7701849c6798a5be72e0f395a2e7cd12c0d (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
45
46
47
48
49
50
51
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_pkgname=qiskit-finance
pkgname=python-${_pkgname}
pkgver=0.3.2
pkgrel=1
pkgdesc="Quantum Finance package for IBM qiskit framework"
arch=('x86_64')
url="https://github.com/Qiskit/qiskit-finance"
license=('Apache')
depends=(
    'python-fastdtw'
    'python-numpy'
    'python-pandas'
    'python-psutil'
    'python-qiskit-optimization'
    'python-qiskit-terra'
    'python-quandl'
    'python-scikit-learn'
    'python-scipy'
    'python-yfinance'
)
makedepends=(
    'python-build'
    'python-installer'
    'python-setuptools'
    'python-wheel'
)
checkdepends=(
    'python-qiskit-aer'
    'python-certifi'
    'python-ddt'
    'python-pytest'
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/Qiskit/${_pkgname}/archive/${pkgver}.tar.gz")
b2sums=('ac24dd982e8d9c98450d0b571c54b759c30100fa956316da598b40e3e4e599934b05919b6b2f52b2723c07bc643fb0a60f355b751f7bea6f9031813f42e608e3')

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python -m build --wheel --no-isolation
}

#check() {
#    cd "${srcdir}/${_pkgname}-${pkgver}"
#    python -m pytest test/
#}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}