# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flake8-blind-except
_pkgname=flake8-blind-except
pkgver=0.1.0
pkgrel=3
pkgdesc="Extension for flake8 which checks for blind except: statements"
url="https://github.com/elijahandrews/flake8-blind-except"
arch="noarch"
license="MIT"
depends="flake8"
makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build || return 1
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="a76ae6603b53c230ad81f9dea27c6bbb  flake8-blind-except-0.1.0.tar.gz"
sha256sums="a8599a48d9fff490ce4fa2c6a60ca876c39cc6c107f58068eb831079266b650b  flake8-blind-except-0.1.0.tar.gz"
sha512sums="4fc3d284309fdb12eff7c50710b25958d180dfee1f34e5bcd48d08ee5310514806fc972ca0d516053b25327d84476d7e6badf6ca2e709c3c888239004647501f  flake8-blind-except-0.1.0.tar.gz"
