blob: 76172fc460c1978e8b19422df889d9c2d91d13b6 (
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
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_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"
}
|