arch-pkgs/python-questionary/PKGBUILD

39 lines
927 B
Bash

# Maintainer: George Rawlinson <george@rawlinson.net.nz>
pkgname=python-questionary
_pkgname="${pkgname#python-}"
pkgver=1.10.0
pkgrel=2
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
}