mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# Contributor: Coco Liliace <coco@liliace.dev>
|
|
# Maintainer: Coco Liliace <coco@liliace.dev>
|
|
_pyname=jaraco.stream
|
|
pkgname=py3-$_pyname
|
|
pkgver=3.0.4
|
|
pkgrel=0
|
|
pkgdesc="Routines for handling streaming data, including a set of generators for loading gzip data on the fly"
|
|
url="https://github.com/jaraco/jaraco.stream"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-gpep517 py3-setuptools_scm py3-wheel"
|
|
checkdepends="py3-pytest py3-more-itertools"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jaraco/jaraco.stream/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
_distname=".dist"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
gpep517 build-wheel --wheel-dir "$_distname" --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer "$_distname"/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" "$_distname"/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
5c1e371e06b61db88d32f79fd28875de56df0b66f789ccf4e1791003d36826f97b04fde2f59c2b3afec1ada6fe88bbafc76463fcdab1a3166484b951b62fdcdb py3-jaraco.stream-3.0.4.tar.gz
|
|
"
|