summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8e43d018ad1b9df33cedf79bf9ae27037d13c06 (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: Anton Kudelin <kudelin at protonmail dot com>

_pkgname=findatapy
pkgname=python-$_pkgname
pkgver=0.1.26
pkgrel=1
pkgdesc="Python library to download market data via Bloomberg, Quandl, Yahoo etc."
arch=('any')
url="https://github.com/cuemacro/findatapy"
license=('APACHE')
depends=('python-pandas' 'python-keyring' 'python-twython'
         'python-openpyxl' 'python-numba' 'python-alpha_vantage')
optdepends=('python-blpapi: Bloomberg Python Open API')
makedepends=('python-setuptools')
source=($pkgname-$pkgver.tar.gz::"$url/archive/v$pkgver.tar.gz")
sha256sums=('caa8afbd1cd71f5c1b7ec8ea1c6b7c5ab685d8e314e989013baa40c1250f4c8b')

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py build
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  export PYTHONHASHSEED=0
  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
  VERSION=`python --version | awk -F' ' '{print $2}'`
  cd "$pkgdir/usr/lib/python${VERSION:0:3}/site-packages"
  rm -r doc tests findatapy_examples
}