blob: 249899c41404f2a4843a3310c74478f40b32a6fb (
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
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=python-akshare
pkgver=1.2.63
pkgrel=1
pkgdesc="Financial data interface library"
arch=('any')
url='https://www.akshare.xyz'
license=('MIT')
depends=(
'python-beautifulsoup4'
'python-lxml'
'python-matplotlib'
'python-numpy'
'python-pandas'
'python-requests'
'python-urllib3'
'python-pillow'
'python-pinyin'
'python-websocket-client'
'python-html5lib'
'python-tqdm'
'python-xlrd'
'python-openpyxl'
'python-jsonpath-ng'
'python-tabulate'
'python-decorator'
'python-pyminiracer')
makedepends=(
'python-setuptools'
'python-sphinx'
'python-sphinx_rtd_theme'
'python-sphinx-markdown-tables'
'python-recommonmark')
changelog=changelog.md
source=("$pkgname-$pkgver.tar.gz::https://github.com/akfamily/akshare/archive/v$pkgver.tar.gz")
sha256sums=('3cab8413e4551ee4e356691b05fa6ebddeda8ea8a895da3555ea8598a0384b20')
prepare() {
cd "akshare-$pkgver"
sed -i "/find_packages/s/()/(exclude=['tests'])/" setup.py
}
build() {
cd "akshare-$pkgver"
python setup.py build
( cd docs; make man )
}
package() {
cd "akshare-$pkgver"
PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 docs/build/man/akshare.1 -t "$pkgdir/usr/share/man/man1/"
}
|