blob: 5e8007cc3759a840da164777e3fcc9f9576ceb87 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-bayesicfitting
_pyname=BayesicFitting
pkgname=("python-bayesicfitting")
#"python-${_pyname}"-doc)
pkgver=3.2.2
pkgrel=1
pkgdesc="A Python Toolbox for Bayesian fitting"
arch=('any')
url="https://github.com/dokester/BayesicFitting"
license=('GPL-3.0-or-later')
makedepends=('python-setuptools')
# 'python-wheel'
# 'python-build'
# 'python-installer'
#checkdepends=('python-astropy'
# 'python-matplotlib'
# 'python-scipy'
# )
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('f0ea915abaca6259c6fc445ad1b642ae9258dd0ae47d3a6a12afb3211d786420')
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python setup.py build
# python -m build --wheel --no-isolation
# msg "Building Docs"
# PYTHONPATH="../build/lib" make SPHINXOPTS="" -C doc html
}
#check() {
# cd ${srcdir}/${_pyname}-${pkgver}
#
# rm ${_pyname}/test/TestModifiable.py
# rm ${_pyname}/test/TestNestedSolver.py
# PYTHONPATH="${_pyname}/test" python -m unittest ${_pyname}/test/* -v #|| warning "Tests failed" # discover -v
#}
package_python-bayesicfitting() {
depends=('python-astropy>=2.0'
'python-matplotlib>=2.0'
'python-scipy>=1.0'
'python-future')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
# python -m installer --destdir="${pkgdir}" dist/*.whl
}
#package_python-bayesicfitting-doc() {
# pkgdesc="Documentation for Python echo module"
# cd ${srcdir}/${_pyname}-${pkgver}/doc/_build
#
# install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE
# install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
# cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
#}
|