blob: de95f7055a21ee742dff7dc8624b7068b4cb7ff9 (
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
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
pkgname=python-yfinance
_name=${pkgname#python-}
pkgver=0.2.54
pkgrel=2
pkgdesc="Yahoo! Finance market data downloader (+faster Pandas Datareader)"
arch=(any)
url=https://github.com/ranaroussi/yfinance
license=(Apache-2.0)
depends=(
python-beautifulsoup4
python-frozendict
python-multitasking
python-numpy
python-pandas
python-peewee
python-platformdirs
python-pytz
python-requests
python-requests-cache
)
optdepends=(
'python-pandas-datareader: to use pandas_datareader'
'python-scipy: repair'
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
source=($_name-$pkgver.tar.gz::https://github.com/ranaroussi/$_name/archive/refs/tags/$pkgver.tar.gz)
b2sums=('c130d6174fa77e0c2c38f96b96d3794978b7aae5b628400b0a80a8bce2cfd281e724f6ab4b8aa24b891d4e09d515d7335c8175b8b635e6fc6fdb572a78d3946f')
build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
# Remove weird entry point
rm -rf "$pkgdir"/usr/bin
}
|