mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
python-pyhmmer: add package (#200)
* pyhmmer: add package * Fix key order in `PKGBUILD` * Fix additional issues in `PKGBUILD` and `lilac.yaml` * Update `PKGBUILD` to use GitHub as source * Update `lilac.yaml` to update on GitHub update
This commit is contained in:
parent
d3213248ad
commit
cb99cc1015
2 changed files with 52 additions and 0 deletions
38
BioArchLinux/python-pyhmmer/PKGBUILD
Normal file
38
BioArchLinux/python-pyhmmer/PKGBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: Martin Larralde <martin.larralde@embl.de>
|
||||
|
||||
_name=pyhmmer
|
||||
pkgname=python-${_name}
|
||||
pkgver=0.10.10
|
||||
pkgrel=1
|
||||
pkgdesc="Cython bindings to HMMER3. https://doi.org/10.1093/bioinformatics/btad214"
|
||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
||||
url="https://github.com/althonos/pyhmmer"
|
||||
license=("MIT")
|
||||
depends=('python' 'glibc' 'python-psutil')
|
||||
makedepends=('python-setuptools' 'cython' 'python-build' 'python-installer' 'python-wheel')
|
||||
source=("git+https://github.com/althonos/pyhmmer.git#tag=v$pkgver")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_name}"
|
||||
git submodule update --init --recursive --remote
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_name}"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
local pyver=$(python -c 'import sys; print(sys.implementation.cache_tag)')
|
||||
local machine=$(python -c 'import platform; print(platform.machine())')
|
||||
cd "${srcdir}/${_name}/build/lib.linux-${machine}-${pyver}"
|
||||
python -m unittest ${_name}.tests
|
||||
}
|
||||
|
||||
package() {
|
||||
local abitag=$(python -c 'import sys; print(*sys.version_info[:2], sep="")')
|
||||
local machine=$(python -c 'import platform; print(platform.machine())')
|
||||
python -m installer --destdir="$pkgdir" "${srcdir}/${_name}/dist/${_name}-${pkgver}-cp${abitag}-cp${abitag}-linux_${machine}.whl"
|
||||
install -Dm644 "${srcdir}/${_name}/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
14
BioArchLinux/python-pyhmmer/lilac.yaml
Normal file
14
BioArchLinux/python-pyhmmer/lilac.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
maintainers:
|
||||
- github: althonos
|
||||
email: althonosdev@gmail.com
|
||||
build_prefix: extra-x86_64
|
||||
pre_build_script: |
|
||||
update_pkgver_and_pkgrel(_G.newver)
|
||||
post_build_script: |
|
||||
git_pkgbuild_commit()
|
||||
update_on:
|
||||
- source: github
|
||||
pypi: althonos/pyhmmer
|
||||
use_max_tag: true
|
||||
prefix: 'v'
|
||||
- alias: python
|
Loading…
Add table
Reference in a new issue