| 1 | # Contributor: Charles Pritchard <[email protected]> |
| 2 | # Maintainer: Wen Heping <[email protected]> |
| 3 | pkgname=py3-biopython |
| 4 | pkgver=1.88 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="Python tools for computational molecular biology." |
| 7 | options="!check" # test_NCBI_qblast hangs |
| 8 | url="https://biopython.org/" |
| 9 | arch="all" |
| 10 | license="BSD-3-Clause" |
| 11 | depends="py3-numpy python3" |
| 12 | makedepends="py3-gpep517 py3-setuptools py3-wheel py3-numpy-dev python3-dev" |
| 13 | subpackages="$pkgname-pyc" |
| 14 | source="https://files.pythonhosted.org/packages/source/b/biopython/biopython-$pkgver.tar.gz" |
| 15 | builddir="$srcdir/biopython-$pkgver" |
| 16 | |
| 17 | build() { |
| 18 | gpep517 build-wheel \ |
| 19 | --wheel-dir .dist \ |
| 20 | --output-fd 3 3>&1 >&2 |
| 21 | } |
| 22 | |
| 23 | check() { |
| 24 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 25 | .testenv/bin/python3 -m installer .dist/*.whl |
| 26 | .testenv/bin/python3 -m unittest |
| 27 | } |
| 28 | |
| 29 | package() { |
| 30 | python3 -m installer -d "$pkgdir" \ |
| 31 | .dist/*.whl |
| 32 | } |
| 33 | |
| 34 | sha512sums=" |
| 35 | acf83ab5e0b9678b86a1014ba8e4653cad673366f03c9d093675291cd86e063cd18c56bc3a4c36e9d4c392e0a645c95f019ae918c5b0c5cf2696b67f2de9df15 biopython-1.88.tar.gz |
| 36 | " |