diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1687aa6977f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Jonas Lähnemann <jonas at pdi-berlin dot de> +# Maintainer: Joshua Taillon <jat255 AT gmail DOT com> +# Python package author: The HyperSpy developers <None> +_pkgname=python-hyperspy +pkgname=$_pkgname-nua-git +_gitname=hyperspy +pkgver=1.7.0.dev0.55ab1e6b9 +pkgrel=1 +pkgdesc="Multidimensional data analysis toolbox (non uniform axis development 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=non_uniform_axes") +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 +} +sha512sums=('SKIP') +sha512sums=('SKIP') |