summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 488d2e9544443217d7a565ec32e704510d5b05f7 (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
# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com>
pkgname=python-ffn
_pkgname=${pkgname:7}
pkgver=0.3.7
pkgrel=1
pkgdesc="Financial functions for Python"
arch=('any')
url="https://pypi.org/project/${_pkgname}"
license=('MIT')
makedepends=(python-build python-installer python-wheel)
depends=(
    python
    python-decorator
    python-future
    python-matplotlib
    python-numpy
    python-pandas
    python-pandas-datareader
    python-scikit-learn
    python-scipy
    python-tabulate
)
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('58b0056e680f4291ab61c6f55809f2d21a339f5c4ec48bba2ecee32f20bbd09e')

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m build --wheel --no-isolation
}

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