blob: b447d2122e3e52a9a297c8b37b3db1c9e5f46022 (
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
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
_pkgname=catppuccin
pkgname="python-$_pkgname"
pkgver=2.3.4
pkgrel=1
pkgdesc="Soothing pastel theme for Python"
arch=('any')
url="https://catppuccin-website.vercel.app"
license=('MIT')
depends=('python')
makedepends=(
'python-build' 'python-installer' 'python-wheel'
'python-poetry-core' 'python-poetry-dynamic-versioning'
)
checkdepends=(
'python-pytest' 'python-pygments' 'python-rich'
'python-matplotlib'
)
optdepends=(
'python-pygments: For pygments integration'
'python-rich: For rich integration'
'python-matplotlib: For matplotlib integration'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/catppuccin/python/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('99ffeaabd559850171e43ba6deb155b1980974e56d72bddcf3b7f46e0a30427d')
b2sums=('7c5e5724d459eafa87995e767fedfb2af63125c516067722b3a80ccb0b0a0b3a22284bcefaf9dc15c444b838d12520a2525428cba18ff293eab78e7fd6ab1586')
prepare() {
cd "python-$pkgver"
mv build.py build_palette.py
}
build() {
cd "python-$pkgver"
export POETRY_DYNAMIC_VERSIONING_BYPASS="$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "python-$pkgver"
pytest
}
package() {
cd "python-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|