blob: e609c36aba2591b04f3e6fdf02e1f28b21a94b66 (
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
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
# Contributor: Alexander Fasching <fasching.a91@gmail.com>
# Contributor: Jean Lucas <jean@4ray.co>
pkgname=python-projectq
_name=ProjectQ
pkgver=0.8.0
pkgrel=4
pkgdesc="Open-source framework for quantum computing"
arch=(x86_64)
url=https://github.com/ProjectQ-Framework/ProjectQ
license=(Apache-2.0)
depends=(
python-matplotlib
python-networkx
python-numpy
python-requests
python-scipy
)
makedepends=(
pybind11
python-build
python-installer
python-setuptools
python-setuptools-scm
python-wheel
)
optdepends=('python-boto3: support for AWS Braket service')
source=($pkgname-$pkgver.tar.gz::https://github.com/$_name-Framework/$_name/releases/download/v$pkgver/${_name,,}-$pkgver.tar.gz)
b2sums=('5edaf7ff1f4e505533b1ea6e05a06d7080113bac7de1e2971d9c1064664946560ebd441dce09b731b02a9b11779caf0498227f56f08cb153fa84cbfd707f827d')
build() {
cd ${_name,,}-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd ${_name,,}-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 README.rst "$pkgdir"/usr/share/doc/$pkgname/README.rst
install -D -m644 NOTICE "$pkgdir"/usr/share/doc/$pkgname/NOTICE
cp -r examples "$pkgdir"/usr/share/doc/$pkgname/
chmod 644 "$pkgdir"/usr/share/doc/$pkgname/examples/*
}
|