summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d78b9568bf8b4529faf5c680fd7bf335c0553888 (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
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>

pkgname=python-envisage
_name=${pkgname#python-}
pkgver=7.0.3
pkgrel=3
pkgdesc="Extensible Application Framework"
arch=(any)
url="https://github.com/enthought/envisage"
license=(BSD-3-Clause)
depends=(
  python
  python-apptools
  python-numpy
  python-pyface
  python-scipy
  python-setuptools
  python-traits
  python-traitsui
)
makedepends=(
  python-build
  python-installer
  python-wheel
)
checkdepends=(
  python-configobj
  python-pytest
  qt5-svg
)
optdepends=('ipython: for IPython shell plugin')

source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('d7cb25abad84a3c7718671ae07c362e87cc8f1f4f4db417c1bbf3f8b855e3dac')

_archive="$_name-$pkgver"

build() {
  cd "$_archive"

  python -m build --wheel --no-isolation
}

check() {
  cd "$_archive"

  pytest
}

package() {
  cd "$_archive"

  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
}