# Maintainer: Anatol Pomozov

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

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
}
