# Maintainer: Iyán Méndez Veiga _pkgname=qiskit-aer pkgname=python-${_pkgname} pkgver=0.13.3 pkgrel=1 pkgdesc="A high performance simulator for quantum circuits that includes noise models" arch=('x86_64') url="https://github.com/Qiskit/qiskit-aer" license=('Apache-2.0') depends=( 'blas-openblas' 'cython' 'muparserx' 'nlohmann-json' 'python-numpy' 'python-qiskit' 'python-scipy' ) optdepends=( 'openmp: parallelization with OpenMP' 'python-cvxpy: support convex optimization' 'python-dask: parallel computing with task scheduling' 'python-distributed: distributed task scheduler for Dask' ) makedepends=( 'cmake' 'gcc-fortran' 'ninja' 'pybind11' 'python-build' 'python-installer' 'python-scikit-build' 'python-setuptools' 'spdlog' ) source=( "${_pkgname}-${pkgver}.tar.gz::https://github.com/Qiskit/${_pkgname}/archive/${pkgver}.tar.gz" "fix.patch" ) b2sums=('0ecc1929b0fec476b8e80012d78d9a65fcd8994f7c0fd66880e31c44bc3fa3d050774d696a9b5726f18cd401113dc8068e4391002743936baa09c283e06ba9bf' '5523350559706d94f6eeb169360759d32bfd1dec8384948bfb04823eec6440e03377860ae53dc6ba3e7a9a087f0429d9f9bb4a4c3d7c523e713f5e6b34c20dc9') prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" patch --forward --input="${srcdir}/fix.patch" } build() { cd "${srcdir}/${_pkgname}-${pkgver}" DISABLE_CONAN=ON 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" }