summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3afa1791abbd14a468171d27dbe43cac5db7b94 (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
# Maintainer: HÃ¥vard Pettersson <mail@haavard.me>

pkgbase=python-iexfinance
pkgname=(python-iexfinance python2-iexfinance)
pkgver=0.3.1
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)
source=("${pkgbase}::git+https://github.com/addisonlynch/iexfinance.git#tag=v$pkgver")
sha256sums=(SKIP)

build() {
  cp -a ${pkgbase} ${pkgbase}2
}

package_python-iexfinance() {
  cd ${pkgbase}
  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

package_python2-iexfinance() {
  depends=(python2 python2-pandas python2-requests)

  cd ${pkgbase}2
  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}