summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f88ebc0fadc5aa5da977d2a63fb26e1f8aaa013a (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-sentiment-investor
_pkgname=${pkgname:7}
pkgver=2.1.0
pkgrel=1
pkgdesc="Access the Sentiment Investor API through Python"
arch=('any')
url="https://pypi.org/project/${_pkgname}"
license=('MIT')
makedepends=(python-build python-installer python-wheel python-poetry)
depends=(python python-requests python-websocket-client python-beartype)
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('1b1969058ed540ef7059a54c146bc7b1e424b55c405607d4b407d476e562504e')

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

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