archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-pyogrio / trunk / PKGBUILD
blob7c7fd1a62652e46c2825d45911bbcfb3e4c22457
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 _pkg=pyogrio
4 pkgname=python-${_pkg}
5 pkgver=0.6.0
6 pkgrel=2
7 pkgdesc="Vectorized vector I/O using OGR"
8 arch=(x86_64)
9 url="https://pyogrio.readthedocs.io/"
10 license=(MIT)
11 depends=(gdal python-certifi python-numpy)
12 makedepends=(cython python-setuptools python-versioneer)
13 checkdepends=(python-pytest)
14 source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
15 sha256sums=('4b8f0666701766a7ac3774b6f1c5f8dd5d72f1ed18cb319790835d8f8d073ce5')
17 build() {
18   cd ${_pkg}-${pkgver}
19   python setup.py build
22 # ModuleNotFoundError: No module named 'pyogrio._ogr' even when setting PYTHONPATH or using a venv
23 #check() {
24 #  cd ${_pkg}-${pkgver}
25 #  pytest -vv --color=yes
28 package() {
29   cd ${_pkg}-${pkgver}
30   python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
31   install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}