summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50f3bf9fe96dcc2896cb5218d9322ca150fac34d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com>
pkgname=python-bt
_pkgname=${pkgname:7}
pkgver=0.2.9
pkgrel=1
pkgdesc="A flexible backtesting framework for Python"
arch=('any')
url="https://pypi.org/project/${_pkgname}"
license=('MIT')
makedepends=(python-build python-installer python-wheel)
depends=(python)
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('d162d71aaaaf7265a848d1fc0040f503add32dac2f9f3127bece0d74c22efb9b')

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

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