blob: f2a5afd231929991236d79cc065f57237ee16df2 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_pkgname=qiskit-terra
pkgname=python-${_pkgname}
pkgver=0.20.2
pkgrel=1
pkgdesc="An open-source framework for working with noisy quantum computers at the level of pulses, circuits, and algorithms"
arch=('x86_64')
url="https://github.com/Qiskit/qiskit-terra"
license=('Apache')
depends=(
'cython'
'python-constraint'
'python-dateutil'
'python-dill'
'python-numpy'
'python-ply'
'python-psutil'
'python-retworkx'
'python-scipy'
'python-stevedore'
'python-symengine'
'python-sympy'
'python-tweedledum'
)
optdepends=(
'cplex: commercial solver for mathematical optimization problems'
'python-docplex: IBM Decision Optimization CPLEX Modeling'
'python-ipywidgets: IPython HTML widgets for Jupyter'
'python-matplotlib: plotting support'
'python-pillow: image support'
"python-pydot: Graphviz's Dot support"
'python-pygments: syntax highlighter'
'python-pylatexenc: LaTeX support'
'python-seaborn: statistical data visualization'
#'z3-solver: efficient SMT solver library'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-setuptools-rust'
'python-wheel'
)
checkdepends=(
'python-pytest'
'python-hypothesis'
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/Qiskit/${_pkgname}/archive/${pkgver}.tar.gz")
b2sums=('715b6fb93e5b6e4d5716c7573e478e8afef476315874d2a6807a935ce7e816f108de6b8ba8e51831700566ae3986bc60f57eb76fdf15764857de22155a3b6abb')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
#check() {
# cd "${srcdir}/${_pkgname}-${pkgver}"
# python -m installer --destdir="$srcdir/test" dist/*.whl
# export PYTHONPATH="$srcdir"/test/usr/lib/python3.10/site-packages
# python -m pytest test/python
#}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|