2024-11-24 13:59:22 +00:00

37 lines
1.0 KiB
Plaintext

# Contributor: Charles Pritchard <chuck@jumis.com>
# Maintainer: Charles Pritchard <chuck@jumis.com>
pkgname=py3-biopython
pkgver=1.84
pkgrel=0
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="
cadf82959626b2b9f4482757d95d7c4db262d3e1e4a007567a2ed7f1f4114a0d6543886a4971dffbe0ff43579aa7e0c3b7132d8b5e58022e8ddf0b13dbf07f52 biopython-1.84.tar.gz
"