blob: 276e58e8c47606de5bb26fec5904247e79911a35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Martin Larralde <martin.larralde@embl.de>
_name=pyrodigal
pkgname=python-${_name}
pkgver=1.1.1
pkgrel=1
pkgdesc="Cython bindings to Prodigal, an ORF finder for genomes and metagenomes"
url="https://github.com/althonos/pyrodigal"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
license=("LGPL3")
groups=()
makedepends=('python-setuptools' 'cython' 'python-build' 'python-installer')
depends=('python')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=(d60831fb7c3537b8adf3a970603cb69c0f4b20fd4082b1424c2d78a2870c10d6)
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
local pyver=$(python -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))')
local machine=$(python -c 'import platform; print(platform.machine())')
cd "${srcdir}/${_name}-${pkgver}/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}-${pkgver}/dist/${_name}-${pkgver}-cp${abitag}-cp${abitag}-linux_${machine}.whl"
install -Dm644 ${srcdir}/${_name}-${pkgver}/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
|