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

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

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
}