summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e3d7d259b2cb518c683eeba6324e99255bb2c16 (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.3.1'
pkgrel=1
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=('700d7918d93d73035a2a58fb18c6be0b609a0481fc6e0908843fa856b89e52c6')

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

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