mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py3-urlgrabber
|
|
pkgver=4.1.0
|
|
pkgrel=7
|
|
pkgdesc="Python3 module for fetching files"
|
|
url="http://urlgrabber.baseurl.org/"
|
|
arch="noarch"
|
|
license="LGPL-2.0-or-later"
|
|
depends="python3 py3-curl py3-six"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="https://github.com/rpm-software-management/urlgrabber/releases/download/urlgrabber-${pkgver//./-}/urlgrabber-$pkgver.tar.gz
|
|
limit-offline-tests.patch"
|
|
|
|
# keep those til after alpine v3.11
|
|
provides="py-urlgrabber=$pkgver-r$pkgrel" # for backward compatibility
|
|
replaces="py-urlgrabber" # for backward compatibility
|
|
|
|
builddir="$srcdir"/urlgrabber-$pkgver
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 test/runtests.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
ab2e2707eb45cf460e2d7cebb0669ea1d20d9edc33ba526c19961314b76a3d8dd2bd932627c17756eac773e2f8bc63e8c9bba35a26487fc50735066c6404611a urlgrabber-4.1.0.tar.gz
|
|
9a5f37f87e200361e50ccb85f00b1001800fcc6bd965b6f56646d0fd0cb09192d55fe7afc4b4007d1a17f0f9d497fe1ab78e93b7ed9200402f423da683a47650 limit-offline-tests.patch
|
|
"
|