blob: feaa3245f8ebcc906507b2473d30a9bc4f46ba0e (
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
|
# Maintainer: Carl George < arch at cgtx dot us >
# Contributor: Erik Johnson <palehose at gmail dot com>
# Contributor: <kwrazi at gmail dot com>
pkgbase="ptpython"
pkgname="ptpython"
pkgver="3.0.32"
pkgrel="2"
pkgdesc="Python REPL build on top of prompt_toolkit"
arch=("any")
url="https://github.com/prompt-toolkit/ptpython"
license=("BSD")
makedepends=(python-build python-installer python-wheel python-setuptools)
depends=(
"python-jedi>=0.9.0"
"python-prompt_toolkit>=3.0.3"
"python-pygments"
"python-black"
"python-appdirs"
)
optdepends=(
"ipython: ptipython (ptpython + ipython)"
)
provides=("ptpython3")
source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/prompt-toolkit/ptpython/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('6418a381cfe84fb3b4a06afd331de62b59e5560d71dbec0158c21ca22802c8f5')
prepare() {
cp -a "${srcdir}/${pkgbase}-${pkgver}" "${srcdir}/${pkgbase}2-${pkgver}"
}
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgbase}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/${pkgbase}-${pkgver}-*.whl
install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|