archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-scs / trunk / PKGBUILD
blob7312dd7e15c5b000a43b6f5f536ade06ca105e6e
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 _pyname=scs
4 pkgname=python-$_pyname
5 pkgver=3.2.3
6 pkgrel=2
7 pkgdesc='Splitting Conic Solver'
8 url='https://github.com/cvxgrp/scs/'
9 license=(MIT)
10 arch=(x86_64)
11 depends=(python-scipy)
12 makedepends=(python-build python-installer python-setuptools python-wheel)
13 checkdepends=(python-pytest)
14 source=(https://pypi.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz)
15 sha256sums=('e3bd779e7e977e3ae5a2f2035aa4c2a309e29082d59a722d5d6592edc4bdb4b3')
17 build() {
18   cd $_pyname-$pkgver
19   python -m build --wheel --no-isolation --skip-dependency-check
22 check() {
23   cd $_pyname-$pkgver
24   python -m venv --system-site-packages test-env
25   test-env/bin/python -m installer dist/*.whl
26   test-env/bin/python -m pytest -v
29 package() {
30   cd $_pyname-$pkgver
31   python -m installer --destdir="$pkgdir" dist/*.whl
32   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname