# Maintainer: Iyán Méndez Veiga _pkgname=qiskit-aer pkgname=python-${_pkgname} pkgver=0.12.2 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') depends=( 'cython' 'muparserx' 'nlohmann-json' 'blas-openblas' 'python-numpy' 'python-qiskit-terra' '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' 'python-wheel' 'spdlog' ) source=( "${_pkgname}-${pkgver}.tar.gz::https://github.com/Qiskit/${_pkgname}/archive/${pkgver}.tar.gz" "fix.patch" ) b2sums=('c7f12c9b8f53a9031844e123b8ef6d723e0099be028c5cfba03143fb8b3c7269768ade99d3ef3b4b82c0b36756bf8e82971a3f70c0f5735891eb77a78a6d9512' '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 #python setup.py bdist_wheel } package() { cd "${srcdir}/${_pkgname}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }