mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: prspkt <prspkt@protonmail.com>
|
|
# Maintainer: prspkt <prspkt@protonmail.com>
|
|
pkgname=py3-itemadapter
|
|
pkgver=0.10.0
|
|
pkgrel=0
|
|
pkgdesc="Common interface for data container classes"
|
|
options="!check" # Introduces circular dependency with py3-scrapy
|
|
url="https://github.com/scrapy/itemadapter"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest py3-scrapy"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/scrapy/itemadapter/archive/v$pkgver/itemadapter-$pkgver.tar.gz"
|
|
builddir="$srcdir/itemadapter-$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
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
db5850d6980e9a18bc49e379065cfffb6be014482c0561c7c3ddb200cf786ede4b2c2bceabfa7f6190b6822e720aa13166baee5f1357cb32af02bc0965ec6afc itemadapter-0.10.0.tar.gz
|
|
"
|