blob: 18d1653c46f7483a87c1fc225cae4cbc76644432 (
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
|
# Maintainer: HÃ¥vard Pettersson <mail@haavard.me>
pkgbase=python-iexfinance-git
pkgname=(python-iexfinance-git python2-iexfinance-git)
pkgver=v0.3.1.0.gd6d7710
pkgrel=1
pkgdesc="Python wrapper for the Investor's Exchange (IEX) Developer API"
url='https://addisonlynch.github.io/iexfinance/'
arch=(any)
license=(apache)
depends=(python python-pandas python-requests)
makedepends=(python-setuptools python2-setuptools)
conflicts=(python-iexfinance)
source=("${pkgname[0]}::git+https://github.com/addisonlynch/iexfinance.git")
sha256sums=(SKIP)
pkgver() {
cd ${pkgname[0]}
git describe --tags --long | sed 's/-/./g'
}
build() {
cp -a ${pkgname[0]} ${pkgname[1]}
}
package_python-iexfinance-git() {
cd ${pkgname[0]}
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}
package_python2-iexfinance-git() {
depends=(python2 python2-pandas python2-requests)
conflicts=(python2-iexfinance)
cd ${pkgname[1]}
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}
|