2024-04-12 11:59:22 +02:00

37 lines
1.0 KiB
Plaintext

# Contributor: Charles Pritchard <chuck@jumis.com>
# Maintainer: Charles Pritchard <chuck@jumis.com>
pkgname=py3-biopython
pkgver=1.82
pkgrel=1
pkgdesc="Python tools for computational molecular biology."
options="!check" # test_NCBI_qblast hangs
url="https://biopython.org/"
arch="all"
license="BSD-3-Clause"
depends="py3-numpy python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-numpy-dev python3-dev"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/b/biopython/biopython-$pkgver.tar.gz"
builddir="$srcdir/biopython-$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 unittest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
97de4a459efaac8fdc2adca4fe8bf77eb363627286cd5a9f7c935dcca3c20fbd882bbfbaa4ead8a898fb852c2b161efd7fe3ca7f36b452efd64a0877e472b094 biopython-1.82.tar.gz
"