blob: 76c973487535d005366cdd8925386d999e10fcdc (
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
60
61
62
|
# Maintainer: Damien Nguyen <damien1@huawei.com>
_Name=OpenFermion
_name=${_Name,,}
pkgname=python-$_name
pkgver=1.5.1
pkgrel=1
pkgdesc="The electronic structure package for quantum computers."
arch=('any')
url="https://github.com/quantumlib/OpenFermion"
license=('Apache')
makedepends=('python'
'python-setuptools')
checkdepends=('python-numpy'
'python-scipy'
'python-sympy'
'python-deprecation'
'python-networkx'
'python-requests'
'python-h5py'
'python-pytest'
'jupyter-nbformat'
# AUR dependencies
'python-pubchempy')
source=("https://github.com/quantumlib/OpenFermion/archive/v$pkgver.tar.gz")
sha256sums=('8f55d5d48175c42267793cc7890faa0e0bd4b5d10a337f6406ca08b0697d37b0')
# source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
# sha256sums=('2aede7cf2e5f7be4c0016c9b542c27505644f8ecb9411c653dc89a5cd746f84c')
prepare() {
cd "$srcdir/$_Name-$pkgver"
# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
}
build() {
cd "$srcdir/$_Name-$pkgver"
python setup.py build
}
check() {
cd "$srcdir/$_Name-$pkgver"
python -m pytest --color=yes -x
}
package() {
cd "$srcdir/$_Name-$pkgver"
conflicts=('python-openfermion-0.11')
depends=('python-deprecation'
'python-h5py'
'python-networkx'
'python-numpy'
'python-scipy'
'python-sympy'
'python-requests'
# AUR dependencies
# missing CirQ...
'python-pubchempy')
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
# vim:set ts=2 sw=2 et:
|