blob: 374b884221912be7f6caf4eafe8a270fc37438cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Alfred Dupont <alfred.dupont@no.email>
# Contributor: Daniel M. Capella <polyzen@archlinux.org>
_name=flake8-bugbear
pkgname=python-flake8-bugbear
pkgver=24.10.31
pkgrel=1
pkgdesc='Plugin for Flake8 finding likely bugs and design problems in your program'
arch=('any')
url=https://github.com/PyCQA/flake8-bugbear
license=('MIT')
depends=('flake8' 'python-attrs')
makedepends=('flake8' 'python-attrs' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-hypothesmith')
source=("${url}/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('40ff6acfe7556e15b421962a36c3e6edd7fc48521a6386f7ec67a5bba92866ff2b6e4bdb97e279bb324f7a9267c2ec3e9cfd619ff31c5415d556f098ae5f7ce5')
build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd $_name-$pkgver
python -m tests.test_bugbear
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
# vim:set ts=2 sw=2 et:
|