mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
37 lines
1016 B
Plaintext
37 lines
1016 B
Plaintext
# 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.37
|
|
pkgrel=1
|
|
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-networkx py3-numpy"
|
|
checkdepends="python3-dev py3-pytest py3-hypothesis"
|
|
makedepends="py3-gpep517 py3-flit-core"
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
7edd4af492049da5a1b851e462f1ffaf180d007ea1f9409a8a36680e150e5b40cc5ab992a3083ffeda160fd9c6e0bfd5a47bf41ec202192f8cbedd4bdacf0116 nashpy-0.0.37.tar.gz
|
|
"
|