blob: 1e8c583939acc15f662d1463684da4057cee4d14 (
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
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
pkgname=python-yfinance
_name=${pkgname#python-}
pkgver=0.2.36
pkgrel=1
pkgdesc="Yahoo! Finance market data downloader (+faster Pandas Datareader)"
arch=('any')
url="https://github.com/ranaroussi/yfinance"
license=('Apache')
depends=(
'python-appdirs'
'python-beautifulsoup4'
'python-cryptography'
'python-frozendict'
'python-html5lib'
'python-lxml'
'python-multitasking'
'python-numpy'
'python-pandas'
'python-peewee'
'python-pytz'
'python-requests'
)
optdepends=(
'python-pandas-datareader: to use pandas_datareader'
'python-requests-cache: no spam'
'python-requests-ratelimiter: no spam'
'python-scipy: repair'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
)
source=("${_name}-${pkgver}.tar.gz::https://github.com/ranaroussi/${_name}/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('e071e35a6ce295fcf5d277db2387b3fb40fb2abfdb8cfa2033370e5cbf4919e942c28cb35ceb9b9307c4c26d066cd9ec8c1f0216a464c54a2bd363cec32f47e2')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|