mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 00:02:17 +01:00
35 lines
954 B
Plaintext
35 lines
954 B
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-parver
|
|
pkgver=0.5
|
|
pkgrel=0
|
|
pkgdesc="Parse and manipulate PEP 440 version numbers"
|
|
url="https://github.com/RazerM/parver"
|
|
license="MIT"
|
|
arch="noarch"
|
|
depends="py3-arpeggio py3-attrs"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-hypothesis py3-pretend"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/RazerM/parver/archive/$pkgver/py3-parver-$pkgver.tar.gz"
|
|
builddir="$srcdir/parver-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD"/build/lib pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/parver-$pkgver-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
55fd52cb229c8358e89053f4c44d8cdb4bfbc8fd79ec40f4b7c6f18f2c848fb025e2be4e907b5cfbeb598e535fed67be4e10cea71d529a21e6d0712679c665d3 py3-parver-0.5.tar.gz
|
|
"
|