mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
35 lines
976 B
Text
35 lines
976 B
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-nashpy
|
|
_pkgorig=nashpy
|
|
pkgver=0.0.36
|
|
pkgrel=0
|
|
pkgdesc="A library for the computation of Nash equilibria in two player games"
|
|
url="https://github.com/drvinceknight/Nashpy"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-scipy py3-numpy"
|
|
checkdepends="python3-dev py3-pytest py3-hypothesis"
|
|
makedepends="py3-gpep517 py3-flit-core"
|
|
source="https://github.com/drvinceknight/Nashpy/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
|
|
builddir="$srcdir/Nashpy-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH=src \
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/nashpy-$pkgver-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
e7eee4bf33f4ffd01a2b7152119ca7c9843ec698869773791dbd1905d9077bed32ba447b94d2d7b7be07e8d7ba27565deffa10dba62e912e672d85bafd326693 nashpy-0.0.36.tar.gz
|
|
"
|