Packages/BioArchLinux/python-ampcombi/PKGBUILD

32 lines
1.1 KiB
Bash

_name=AMPcombi
pkgname=python-ampcombi
pkgver=2.0.1
pkgrel=2
pkgdesc="A parsing tool for AMP tools."
arch=(any)
url="http://pypi.python.org/pypi/AMPcombi/"
license=(MIT)
depends=('python-pandas' 'python-biopython' 'python-requests')
makedepends=('python-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/ampcombi-2.0.1.tar.gz")
sha256sums=('4bef05aa8433d991b76b81cb2338396c064f2ace5c73642411b2a2467524a0eb')
build() {
cd "$srcdir/ampcombi-2.0.1"
python3 setup.py build
}
package() {
cd "$srcdir/ampcombi-2.0.1"
python3 setup.py install --root=$pkgdir --optimize=1 --skip-build
# make sure we don't install any world-writable or root-readable-only files
# we shouldn't need to fix ownership as we extract tarballs as a non-root user
# https://github.com/pypa/setuptools/issues/1328
# https://github.com/LonamiWebs/Telethon/issues/1605
chmod u=rwX,go=rX -R "$pkgdir"
# make sure we don't install annoying files
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "$pkgdir/$_site_packages/tests/"
}