blob: 91f9b9577b47444265d24c332ffd9da73db91ec6 (
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
67
68
69
|
# Maintainer: Yauhen Kirylau <actionless DOT loveless PLUS aur AT gmail MF com>
# Maintainer: Padraic Fanning <fanninpm AT miamioh DOT edu>
# Maintainer: nomisge <nomisge @ live . de>
_name=gaphor
pkgname=python-${_name}
pkgver=2.24.0
pkgrel=2
pkgdesc="Simple and easy to use modeling tool for UML using GTK3"
arch=('any')
url="https://github.com/gaphor/${_name}"
license=('Apache')
depends=(
'gtksourceview5'
'python-gaphas>=4.0.0'
'python-generic>=1.1.2'
'python-jedi'
'python-tinycss2'
'python-pygit2'
# 'python-typing_extensions'
'python-better-exceptions'
'python-pydot'
'python-babel'
)
makedepends=(
'gendesk'
'python-build'
'python-installer'
'python-poetry-core'
)
checkdepends=(
'python-hypothesis'
'python-pytest'
'python-pytest-mock'
'python-pytest-archon'
'python-pytest-xvfb'
'python-sphinx'
# 'python-babel-glade'
'python-xdoctest'
'xorg-server-xvfb'
)
provides=("${_name}")
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('e20f32514c2db6c677206584087c908163f9bd348176b2cfe5dd04880f977e34')
build() {
cd "${_name}-${pkgver}"
python po/build-babel.py
# Note: set `GIT_CEILING_DIRECTORIES` to prevent poetry
# from incorrectly using a parent git checkout info.
# https://github.com/pypa/build/issues/384#issuecomment-947675975
GIT_CEILING_DIRECTORIES="${PWD}/.." python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/${_name}-${pkgver}"
xvfb-run python -m pytest -s tests
}
prepare() {
gendesk -f -n --pkgname="$_name" --pkgdesc="$pkgdesc" --icon='org.gaphor.Gaphor' --categories='Development' PKGBUILD
}
package() {
cd "${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "$srcdir/${_name}.desktop" -t "$pkgdir"/usr/share/applications
install -Dm644 "$srcdir/${_name}-${pkgver}/data/logos/org.gaphor.Gaphor.svg" "$pkgdir"/usr/share/pixmaps/org.gaphor.Gaphor.svg
}
|