# Maintainer: Iyán Méndez Veiga _pkgname=qiskit-terra pkgname=python-${_pkgname} pkgver=0.25.0 pkgrel=2 pkgdesc=" (DEPRECATED) 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-dateutil' 'python-dill' 'python-numpy' 'python-ply' 'python-psutil' 'python-rustworkx' 'python-scipy' 'python-stevedore' 'python-symengine' 'python-sympy' ) optdepends=( 'cplex: commercial solver for mathematical optimization problems' 'python-constraint: support for handling CSPs (Constraint Solving 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-qiskit-qasm3-import: import OpenQASM 3 files' 'python-qiskit-toqm: Time-Optimal Qubit Mapping (TOQM) transpiler support' 'python-seaborn: statistical data visualization' 'python-tweedledum: synthesizing and manipulating quantum circuits' #'z3-solver: efficient SMT solver library' ) makedepends=( 'python-build' 'python-installer' 'python-setuptools' 'python-setuptools-rust' 'python-wheel' ) source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/Qiskit/${_pkgname}/archive/${pkgver}.tar.gz") b2sums=('6c5a30f9e3d8ffb8ac6415b1afbe4965031aae5e9959d9aa6b5a0fe7f269e0d61958161be5c67a22f861a8ba474ba37d197e51ac1b89340725729be0a6906cab') build() { cd "${srcdir}/${_pkgname}-${pkgver}" python -m build --wheel --no-isolation } package() { cd "${srcdir}/${_pkgname}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }