2021-07-24 10:00:43 +00:00
|
|
|
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
|
|
|
|
|
|
|
|
pkgname=python-questionary
|
|
|
|
_pkgname="${pkgname#python-}"
|
|
|
|
pkgver=1.10.0
|
2021-12-13 07:33:50 +00:00
|
|
|
pkgrel=2
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgdesc="A library to build pretty command line user prompts"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/tmbo/questionary"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('python')
|
|
|
|
makedepends=('python-pip' 'python-poetry')
|
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
|
|
|
b2sums=('b0f5e10df598306d6ea5fc1b1726879cc11ea44fb200f0dbc31d20993587dd463fd5d34d2b16a9a6018fdbeb64cf2b02afdd621e3446a15faf9fb83fc97037db')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$_pkgname-$pkgver"
|
|
|
|
poetry build --format wheel
|
|
|
|
}
|
|
|
|
|
|
|
|
#check() {
|
|
|
|
# cd "$_name-$pkgver"
|
|
|
|
#}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$_pkgname-$pkgver"
|
|
|
|
|
|
|
|
PIP_CONFIG_FILE=/dev/null pip \
|
|
|
|
install \
|
|
|
|
--isolated \
|
|
|
|
--root="$pkgdir" \
|
|
|
|
--ignore-installed \
|
|
|
|
--no-deps \
|
|
|
|
dist/*.whl
|
|
|
|
|
|
|
|
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
|
|
|
}
|