summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9b9ab6dcfeb8c8600afd32fd2429c7b9cb3cef3 (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
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: jmcb <joelsgp@protonmail.com>
# Contributor: Jonas DOREL <jonas at dorel dot me>

pkgname=python-prospector
_name=prospector
pkgver=1.10.2
pkgrel=1
pkgdesc="Python static analysis tool"
url="https://github.com/PyCQA/prospector/"
depends=('python-pylint'
         'python-pylint-celery'
         'python-pylint-django'
         'python-pylint-plugin-utils'
         'python-pylint-flask'
         'python-requirements-detector'
         'python-yaml'
         'python-mccabe'
         'python-pyflakes'
         'python-pycodestyle'
         'python-pep8-naming'
         'python-pydocstyle'
         'python-dodgy'
         'python-toml'
         'python-setoptconf'
         'python-gitpython'
         'python-packaging')
optdepends=('python-bandit: security linter'
            'mypy: optional type checking'
            'python-pyroma: check setup.py'
            'python-vulture: find dead code')
makedepends=('python-poetry'
             'python-wheel')
license=('GPL2')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('cc8f09e79bdd32247edddf05b666940e88ad96338a84f5717b1e8c0678337821')

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}