# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=python-database-knotinfo
_pyname=database_knotinfo
pkgver=2021.9.1
pkgrel=1
arch=(any)
pkgdesc='Snapshot of the complete content of the KnotInfo and LinkInfo databases for Python'
url='https://github.com/soehms/database_knotinfo'
depends=(python)
makedepends=(python-setuptools-scm)
license=(GPL)
source=(https://pypi.io/packages/source/d/$_pyname/$_pyname-$pkgver.tar.gz)
sha256sums=('6b4f73a7d49b7651e67f3a1d425f4ee1acfd521dc3600ed11581e47f14af7326')

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

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