mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +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
29 lines
907 B
Text
29 lines
907 B
Text
# Contributor: prspkt <prspkt@protonmail.com>
|
|
# Maintainer: prspkt <prspkt@protonmail.com>
|
|
pkgname=py3-itemadapter
|
|
pkgver=0.2.0
|
|
pkgrel=3
|
|
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"
|
|
checkdepends="py3-pytest py3-scrapy"
|
|
source="https://github.com/scrapy/itemadapter/archive/v$pkgver/itemadapter-$pkgver.tar.gz"
|
|
builddir="$srcdir/itemadapter-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="317e42ebe7f161e114719c942fb7261b3b06e38fe81f609ccdacebfb051a5eaea90286bfef79c8bcf56d041d26e087dbbc9a74270c7a61bdd73841596a01f174 itemadapter-0.2.0.tar.gz"
|