blob: 00b9ab10fb4fde95419d85028eb84ad3c06fa49c (
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
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: xantares
pkgname=python-baycomp
_pkgname="${pkgname#python-}"
pkgver=1.0.3
pkgrel=5
pkgdesc='Library for Bayesian comparison of classifiers'
url='https://github.com/janezd/baycomp'
arch=(any)
license=('MIT')
makedepends=(python-setuptools)
depends=(
'python-matplotlib>=2.1.2'
'python-numpy>=1.13.1'
'python-scipy>=0.19.1'
python
)
optdepends=('python-pystan>=3.4.0')
_src_name="${_pkgname//-/_/}-${pkgver}"
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname//-/_}/${_src_name}.tar.gz")
sha256sums=('32b25ad7b16d5b251ddb9f6110a32d7b3953b987096da1d25ef277935d25daec')
build() {
cd "${_src_name}"
python setup.py build
}
package() {
cd "${_src_name}"
python setup.py install --root=${pkgdir} --optimize=1
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "${pkgdir}${site_packages}/tests/"
}
|