summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c003844eb89c33a341ae08c06dcf43123c768dd1 (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
# Maintainer: Andy Botting <andy@andybotting.com>
_name=gspread-dataframe
pkgname="python-$_name"
pkgver=4.0.0
pkgrel=1
pkgdesc='Easy data flow between a Google spreadsheet and a Pandas DataFrame'
arch=(any)
url=https://github.com/robin900/gspread-dataframe
license=(MIT)
makedepends=(python-setuptools)
depends=(python-gspread python-pandas python-six)
checkdepends=(python-pytest)
source=("$pkgname-$pkgver.tar.gz::https://github.com/robin900/$_name/archive/v$pkgver.tar.gz")
sha512sums=('e8faeb25d56825c31c61ccbd482274032bb52849c879eb016dc4926b2ffc09fba13894d351203bb570a79ed0719b42d717a4c7fe897dd64ca21ed5ba77fd6faf')

build() {
  cd $_name-$pkgver
  python setup.py build
}

check() {
  cd $_name-$pkgver
  # Don't run the integration tests
  > tests/gspread_dataframe_integration.py
  python setup.py test
}

package() {
  cd $_name-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}