summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9aadcafb93761c9260e27e3433a918bfcc90065f (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
# Maintainer: Anakojm <https://anakojm.net/about.html>

pkgname='python-fitutils'
_name=${pkgname#python-}
pkgver=0.2.2
pkgrel=1
pkgdesc="Utility function and classes for fitting"
arch=('any')
url="https://pypi.org/project/$_name/"
license=('custom:BSD 3-Clause License')
depends=('python>=3.4.0' 'python-numpy' 'python-scipy' 'python-matplotlib')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('7a75eb9cc513b2bd9889330b41cecf02aeaeb9c14d2d2f47e90b1df5eb56e590')

build(){
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package(){
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}