# Maintainer: Anatol Pomozov

pkgname=codespell
pkgver=1.16.0
pkgrel=1
pkgdesc='Fix common misspellings in source code'
arch=(any)
url='https://github.com/lucasdemarchi/codespell'
license=(GPL2)
depends=(python python-setuptools)
checkdepends=(python-nose python-pytest)
source=(https://pypi.io/packages/source/c/codespell/codespell-$pkgver.tar.gz)
sha1sums=('e56584251e63e36941f50d2a991705d90d553017')

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

check() {
  cd codespell-$pkgver
  python setup.py test
}

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