diff options
Diffstat (limited to 'community/py3-inspyred/APKBUILD')
-rw-r--r-- | community/py3-inspyred/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/py3-inspyred/APKBUILD b/community/py3-inspyred/APKBUILD new file mode 100644 index 00000000000..09be867641b --- /dev/null +++ b/community/py3-inspyred/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu> +# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu> +pkgname=py3-inspyred +_pkgorig=inspyred +pkgver=1.0.2 +pkgrel=1 +pkgdesc="A framework for creating bio-inspired computational intelligence algorithms in Python" +url="https://github.com/aarongarrett/inspyred" +arch="noarch" +license="MIT" +depends="python3 py3-numpy py3-matplotlib py3-click" +makedepends="py3-gpep517 py3-setuptools py3-wheel" +checkdepends="py3-pytest-xdist" +subpackages="$pkgname-pyc" +source="https://github.com/aarongarrett/inspyred/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz" +builddir="$srcdir/$_pkgorig-$pkgver" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -n auto +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +9900c40adf773550d845cedca459404b878d0140919b0a15d6e7138795a34ca6ce5477970c973e76cc1a1b6c15335e1b60c434f9d287ff578e303416c753a26d inspyred-1.0.2.tar.gz +" |