blob: c719c55120f77a55a9bdfb0bf7daf36249c9bd09 (
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-ibm-runtime
pkgname=python-${_pkgname}
pkgver=0.21.0
pkgrel=1
pkgdesc="IBM Client for Qiskit Runtime"
arch=('any')
url="https://github.com/Qiskit/qiskit-ibm-runtime"
license=('Apache-2.0')
depends=(
'python-dateutil'
'python-ibm-platform-services'
'python-numpy'
'python-qiskit'
'python-requests'
'python-requests-ntlm'
'python-scipy'
'python-typing_extensions'
'python-urllib3'
'python-websocket-client'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
#checkdepends=(
# 'jupyter-nbconvert'
# 'python-ddt'
# 'python-psutil'
# 'python-pytest'
# 'python-qiskit-aer'
# 'python-websockets'
#)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/Qiskit/${_pkgname}/archive/${pkgver}.tar.gz")
b2sums=('f250c363538dbd94e5e327bb03e3c13c655e2bc0995d2a50d86160dd4864faadeac89ca048d2935349c00ec512e033d759350eed182f0418708f23d6b1e35b3f')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
#check() {
# local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
# cd "${_pkgname}-${pkgver}"
# python -m installer --destdir=test_dir dist/*.whl
# PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" pytest
#}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|