mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
33 lines
1,010 B
Text
33 lines
1,010 B
Text
# Contributor: Hannes Braun <hannes@hannesbraun.net>
|
|
# Maintainer: Hannes Braun <hannes@hannesbraun.net>
|
|
pkgname=py3-libpyshell
|
|
pkgver=0.4.1
|
|
pkgrel=0
|
|
pkgdesc="Support for writing shell scripts in Python"
|
|
url="https://github.com/skoksbaer/libPyshell"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/skogsbaer/libPyshell/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/libPyshell-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
cd tests
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer ../.dist/*.whl
|
|
.testenv/bin/python3 shellTests.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
eff3f6249c348e87e9cd57063ebd3694ac1f5eb5da4609bb74a5e54a51b918130cd237501863d3f3aa07a737256c778d7400f26980a7cfbc080a29cedb0d9e1e py3-libpyshell-0.4.1.tar.gz
|
|
"
|