blob: 18419a62ba6c986c5cd45e1da6a018b73c98f24b (
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.4.8
pkgrel=1
pkgdesc="Financial data interface library"
arch=('any')
url='https://github.com/akfamily/akshare'
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::$url/archive/release-v$pkgver.tar.gz")
sha256sums=('faccae5fddf43d600be054b51ffe3760547ab8c2592cf8af7dfa021098c77dae')
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/"
}
|