text: # Contributor: Oleg Titov <oleg.titov@gmail.com>
  # Maintainer: Oleg Titov <oleg.titov@gmail.com>
  pkgname=py3-catalogue
  pkgver=2.0.1
  pkgrel=0
  pkgdesc="Super lightweight function registries for your library"
  url="https://github.com/explosion/catalogue"
  arch="noarch"
  license="MIT"
  depends="py3-importlib-metadata"
  makedepends="py3-setuptools"
  checkdepends="py3-pytest"
  subpackages="$pkgname-doc"
  source="$pkgname-$pkgver.tar.gz::https://github.com/explosion/catalogue/archive/v$pkgver.tar.gz"
  
  builddir=$srcdir/catalogue-$pkgver
  
  build() {
  	python3 setup.py build
  }
  
  check() {
  	pytest-3 catalogue/tests/test_catalogue.py
  }
  
  package() {
  	python3 setup.py install --prefix=/usr --root="$pkgdir"
  
  	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
  }
  
  sha512sums="a0fd0dcccbd8dfa2662b058882118c73b5d1afbbadda9a03d21212b7c75dc79d78432d31a1922523491aad092af20463ce1bbfb3cd286d95bab367cb2f67ed55  py3-catalogue-2.0.1.tar.gz"
  