summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 580b3f77b8044ae702bcd9361f47b27198d99655 (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
# 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.2
pkgrel=1
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-numexpr'
         '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-matplotlib-scalebar: scalebar in images'
            'python-numpydoc: build documentation'
            'python-pydata-sphinx-theme: build documentation'
            'python-sphinx-copybutton: build documentation'
            'python-sphinx_design: build documentation'
            'python-sphinx-favicon: build documentation'
            'python-sphinx-gallery: build documentation'
            'python-sphinx>=1.7: build documentation'
            'python-sphinxcontrib-mermaid: build documentation'
            'python-sphinxcontrib-towncrier'
             )


makedepends=('python-setuptools'
             'python-setuptools-scm')

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=('71e941942d08a5d8d055231641edc231')