summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db804122e049d25bc8110e08b4628b7aae5ae5f3 (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
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: redponike <proton (dot) me>
# Contributor: Fabio Zanini <fabio.zanini _at_ fastmail.fm>

pkgname=python-scikit-bio
pkgver=0.6.2
pkgrel=1
pkgdesc="Python package providing data structures, algorithms, and educational resources for bioinformatics"
arch=('x86_64')
url="https://scikit.bio"
license=('BSD-3-Clause')
depends=(
    'python>=3.9'
    'python-requests>=2.20.0'
    'python-decorator>=3.4.2'
    'python-natsort>=4.0.3'
    'python-numpy>=1.17.0'
    'python-pandas>=1.5.0'
    'python-scipy>=1.9.0'
    'python-h5py'
    'python-biom-format>=2.1.16'
    'python-statsmodels>=0.14.0'
    'python-patsy>=0.5.0'
)
makedepends=('python-setuptools' 'cython')
options=(!emptydirs)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/scikit-bio/scikit-bio/archive/${pkgver}.tar.gz")
sha256sums=('c996ce6f0203c9db67f041131e024d2aba1319b6adfc7450e4f417cc52e4300a')

prepare(){
  cd scikit-bio-${pkgver}
  find . -iname "*.pyx" | xargs -n 1 cython
}

build() {
  cd scikit-bio-${pkgver}
  python setup.py build
}

check(){
  cd scikit-bio-${pkgver}
  python setup.py test || :
}

package() {
  cd scikit-bio-${pkgver}
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}