summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed048d6dddf2422ea5a0aa764c30f81b2ed1426d (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
47
# Maintainer: Jonas DOREL <jonas at dorel dot me>

pkgbase='python-prospector'
pkgname=('python-prospector')
_module='prospector'
pkgver='1.6.0'
pkgrel=2
pkgdesc="Python static analysis tool"
url="http://prospector.readthedocs.io"
depends=('python-pylint'
         'python-pylint-celery'
         'python-pylint-django'
         'python-pylint-plugin-utils'
         'python-pylint-flask'
         'python-requirements-detector'
         'python-setoptconf'
         'python-yaml'
         'python-mccabe'
         'python-pyflakes'
         'python-pycodestyle'
         'python-pep8-naming'
         'python-pydocstyle'
         'python-dodgy'
         'python-toml'
         'python-setoptconf-tmp')
optdepends=('python-bandit: security linter'
            'python-frosted: checker'
            'mypy: optional type checking'
            'python-pyroma: check setup.py'
            'python-vulture: find dead code')
makedepends=('python-setuptools')
license=('GPL')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('1ca0da95a2d1a151ae578f02d6fc78300a9150af8f2c2c201097213016cc92ee')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py build
}

package() {
    depends+=()
    cd "${srcdir}/${_module}-${pkgver}"
    PIP_CONFIG_FILE=/dev/null
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}