archrelease: copy trunk to community-any
[ArchLinux/community.git] / vulture / trunk / PKGBUILD
blob130e7fab0aeaab618af8059ec64e3c4429883cac
1 # Maintainer: Leonidas Spyropoulos <artafinde at archlinux dot org>
3 pkgname=vulture
4 pkgver=2.7
5 pkgrel=2
6 pkgdesc="Finds dead code in Python projects"
7 arch=('any')
8 url="https://github.com/jendrikseipp/vulture"
9 license=('MIT')
10 depends=(python-coverage python-setuptools python-pint python-toml)
11 makedepends=(python-build python-installer python-poetry-core python-wheel)
12 checkdepends=(python-tox)
13 source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
14 sha256sums=('ae0268f49b680b0f75318aab63af71a6a050e51150789b30d3be7b37cb03c37d')
15 b2sums=('ef2462b11472e88494abcbe2d060b64e1000ad0be2d9939ca50ac78202136f498d5c584bf2c989d6da1c5d5ca53196b8d359e5f9c8495106f9a119b24ffd8311')
17 build() {
18   cd "${pkgname}"-"${pkgver}"
19   python -m build --wheel --no-isolation
22 check() {
23   cd "${pkgname}"-"${pkgver}"
24   python -m tox -e py
27 package() {
28   cd "${pkgname}"-"${pkgver}"
29   python -m installer --destdir="$pkgdir" dist/*.whl
30   install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
33 # vim:set ts=2 sw=2 et: