aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-scs/APKBUILD
blob: 24858be70cf954d750acc21867c9d63faefe3f51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=py3-scs
pkgver=3.0.0
pkgrel=0
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"
checkdepends="py3-pytest"
source="scs-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/scs/scs-$pkgver.tar.gz"
builddir="$srcdir/scs-$pkgver"
options="!check" # upstream tests broken

build() {
	python3 setup.py build
}

check() {
	python3 setup.py build_ext --inplace
	cp src/__init__.py scs
	PYTHONPATH=. pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
7af03008f8ca501727ebf5926650374baa09aa04a3142f3f73a38cf71ffb77a0aa6ec3ddcfa57de3972c0e9f1342292374ac3510d01d9029ed44c01d4e7639f7  scs-3.0.0.tar.gz
"