summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f276edc738e53364fb0ff45b481376bd97810a53 (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
# Maintainer: jerry73204 <jerry73204 at google gmail>

pkgname='python-geoviews'
pkgver=1.8.1
pkgrel=1
pkgdesc='Simple, concise geographical visualization in Python'
arch=('any')
url='https://github.com/pyviz/geoviews'
license=('BSD')
makedepends=('python-setuptools'
             'python-param')
depends=(
  'python-bokeh'
  'python-cartopy'
  'python-holoviews'
  'python-numpy'
  'python-param'
)
optdepends=(
  'python-datashader'
  'python-geopandas'
  'python-netcdf4'
  'python-gdal'
  'python-matplotlib>2.2'
  'python-pandas'
  'python-pyct'
  'python-scipy'
  'python-shapely'
  'python-xarray'
  'jupyter'
)
checkdepends=('python-pytest'
              'python-coveralls'
              'python-nose'
              # 'python-nbsmoke' # This package is missing
              'flake8')
source=("https://github.com/pyviz/geoviews/archive/v${pkgver}.tar.gz")
sha256sums=('c71a3203a47dbff1e17af590c854bd2c44157f077b1d37589404e89238050b1f')
build() {
  cd "${srcdir}/geoviews-${pkgver}"
  python setup.py build
}

package_python-geoviews() {
  cd "${srcdir}/geoviews-$pkgver"
  python setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1
  install -D -m644 LICENSE* "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m644 README* "${pkgdir}/usr/share/doc/${pkgname}/README"
}