mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
31 lines
875 B
Text
31 lines
875 B
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=py3-readchar
|
|
pkgver=4.0.3
|
|
pkgrel=2
|
|
pkgdesc=" Python library to read characters and key strokes"
|
|
url="https://github.com/magmax/python-readchar"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-flake8"
|
|
checkdepends="py3-pexpect py3-coverage py3-pytest py3-pytest-cov py3-wheel"
|
|
source="https://github.com/magmax/python-readchar/archive/v$pkgver/py3-readchar-v$pkgver.tar.gz"
|
|
builddir="$srcdir/python-readchar-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH=build/lib \
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
04030ddaef92e012fbcf67168aa86b44eb2d944bfcfb53f74d937d02bdf570f171d1aec5e017fa33f154ace2095c7532361678358d130a81708108d31da2e317 py3-readchar-v4.0.3.tar.gz
|
|
"
|