summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 732ab381920b7db2a5788e67de7a6bb946f1900f (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
# Contributor: Jonas Lähnemann <jonas at pdi-berlin dot de>
# Maintainer: Jonas Lähnemann <jonas at pdi-berlin dot de>
pkgname=python-exspy
pkgshort=exspy
pkgver=0.3.1
pkgrel=3
pkgdesc="Analysis of EDS and EELS data with HyperSpy"
arch=('any')
url="http://hyperspy.org/exspy"
license=('GPL3')

depends=('python'
         'python-dask'
         'python-hyperspy>=2.0rc0'
         'python-matplotlib'
         'python-numpy'
         'python-pint'
         'python-pooch'
         'python-prettytable'
         'python-requests'
         'python-scipy'
         'python-traits'
         )

optdepends=('python-hyperspy-gui-ipywidgets>=2.0: GUI components for Jupyter' # AUR
            'python-hyperspy-gui-traitsui>=2.0: GUI components for desktop'  # AUR
            'python-numexpr' # speed
             )


makedepends=('python-setuptools>=64'
             'python-setuptools-scm>=8'
             'python-wheel'
             'python-build'
             'python-installer'
             )

provides=('exspy')

source=(https://github.com/hyperspy/$pkgshort/archive/v$pkgver.tar.gz)

build() {
  cd "$srcdir/$pkgshort-$pkgver"
  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$pkgshort-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}

md5sums=('ee1cfb3c28bfd93cf95a9213db38e959')