aports/testing/py3-scs/APKBUILD
2024-08-06 14:45:28 +02:00

37 lines
1.1 KiB
Text

# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=py3-scs
pkgver=3.2.3
pkgrel=4
pkgdesc="C package that solves convex cone problems via operator splitting"
url="https://github.com/cvxgrp/scs"
arch="all"
license="MIT"
depends="python3 py3-numpy py3-scipy"
makedepends="py3-setuptools py3-numpy-dev python3-dev py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="scs-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/scs/scs-$pkgver.tar.gz"
builddir="$srcdir/scs-$pkgver"
options="!check" # Cannot solve SDPs without linked blas+lapack libraries
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="
9b3bef40f34fc9350444e2bd56602def10d2fedd6efd0c78eceacfba2f8276bfd16cd7e8a479cd9431c55f5efe65f6869d2d9ecb5dc6450801dd371f802ff3a9 scs-3.2.3.tar.gz
"