blob: cc8d0b0bef8df8ec34bdcfdd23d221f822cf60c2 (
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
52
53
54
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_pkgname=qiskit-finance
pkgname=python-${_pkgname}
pkgver=0.4.1
pkgrel=3
pkgdesc="Quantum Finance package for IBM qiskit framework"
arch=(any)
url=https://github.com/qiskit-community/qiskit-finance
license=(Apache-2.0)
depends=(
python-certifi
python-fastdtw
python-nasdaq-data-link
python-numpy
python-pandas
python-psutil
python-qiskit
python-qiskit-algorithms
python-qiskit-optimization
python-scipy
python-urllib3
python-yfinance
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-ddt
python-pytest
)
source=($_pkgname-$pkgver.tar.gz::https://github.com/qiskit-community/$_pkgname/archive/$pkgver.tar.gz)
b2sums=('2258bf0d30b5ad46e610e3adcc823da6ae50f3601e7e4ef5e39e41a3e3edbd8e58b3b8cfbee4b82ca5214952c2cdbc23448dcb64a6cfbe7e5a0746e56956497b')
build() {
cd $_pkgname-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd $_pkgname-$pkgver
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
python -m installer --destdir=../test_dir dist/*.whl
# The data providers tests fail due to missing API keys
PYTHONPATH=../test_dir/$_site_packages pytest --ignore=test/data_providers/test_data_providers.py
}
package() {
cd $_pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|