blob: 1a61e361d5ab240067d22d4c2ff136b66a9064d6 (
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
63
64
65
66
|
# Maintainer: Joshua Taillon <jat255 AT gmail DOT com>
# Maintainer: Jonas Lähnemann <jonas at pdi-berlin dot de>
# Python package author: The HyperSpy developers <None>
_pkgname=python-hyperspy
pkgname=$_pkgname-git
_gitname=hyperspy
pkgver=1.7.0.dev0.742a95fec
pkgrel=1
pkgdesc="Multidimensional data analysis toolbox (next minor version branch)"
arch=(any)
url="http://hyperspy.org"
license=("GPL3")
makedepends=("git" "python" "python-setuptools")
depends=('python'
'python-scipy'
'python-matplotlib'
'python-numpy'
'python-traits'
'python-natsort'
'python-requests'
'python-tqdm'
'python-sympy'
'python-h5py'
'python-dateutil'
'python-dask'
'python-pint'
'python-statsmodels'
'python-numexpr'
'python-pyaml'
'python-ptable'
'python-dill' # AUR
'python-ipyparallel' # AUR
'python-scikit-image' # AUR
# 'python-imageio' # AUR (from scikit-image)
# 'python-pywavelets' # AUR (from scikit-image)
# 'python-tifffile' # AUR (from scikit-image)
'python-sparse' # AUR
# 'python-numba' # AUR (from python-sparse)
# 'python-llvmlite' # AUR (from python-numba)
'python-llvmlite-bin' # AUR (from python-numba, but require bin package to avoid version mismatches)
)
optdepends=('python-scikit-learn: machine learning features'
'python-hyperspy-gui-ipywidgets: GUI components for Jupyter' # AUR
'python-hyperspy-gui-traitsui: GUI components for desktop' # AUR
'python-blosc: mrcz file support'
'cython: enables acceleration of certain operations (must be installed at package build time)' )
provides=('python-hyperspy')
conflicts=('python-hyperspy')
source=("git+https://github.com/hyperspy/hyperspy.git#branch=RELEASE_next_minor")
sha512sums=("SKIP")
pkgver() {
cd "${srcdir}/${_gitname}/"
rel_ver=$(grep -E "^version" ${_gitname}/Release.py | awk '{print $3}' | tr -d \")
commit=$(git rev-parse --short HEAD)
echo "${rel_ver}.${commit}"
}
package() {
cd "${srcdir}/${_gitname}/"
python setup.py install --root="$pkgdir/" --optimize=1
}
|