mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +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
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-cytoolz
|
|
_pkgorig=cytoolz
|
|
pkgver=0.12.1
|
|
pkgrel=0
|
|
pkgdesc="Cython implementation of Toolz: High performance functional utilities"
|
|
url="https://github.com/pytoolz/cytoolz"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
depends="python3 cython py3-toolz"
|
|
checkdepends="py3-pytest"
|
|
makedepends="python3-dev py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/cytoolz/cytoolz-$pkgver.tar.gz
|
|
do-not-package-tests.patch"
|
|
builddir="$srcdir/$_pkgorig-$pkgver"
|
|
|
|
build() {
|
|
# C extension
|
|
python3 setup.py build_ext --inplace --with-cython
|
|
|
|
# Python extension
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
local python_version=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
|
|
export PYTHONPATH="build/lib.linux-$CARCH-$python_version/:$PYTHONPATH"
|
|
echo "$PYTHONPATH"
|
|
pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
84d627d4c894424f0267e65ab3eeee86a535b7f9e649051253702f17d4add7608d18496f453f174361a2a19d188127a056c66a9cbccaa83e1a305bbbf1d0f269 py3-cytoolz-0.12.1.tar.gz
|
|
d5a79048e053efccec379e73a185bd8002ad95246b696a8c612bbb849e2b55f1c06e203ccc164f25b9a9242515805590c26028da188ac789ffe965b5a7430707 do-not-package-tests.patch
|
|
"
|