summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7369c57ad5b7c569853ee3330bb4f20de90802e1 (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
# Maintainer: razer <razer[at]neuf[dot]fr>
pkgname=python-pylint-plugin-utils
_pypi_pkgname=pylint-plugin-utils
pkgver=0.8.2
pkgrel=0
pkgdesc="Utilities and helpers for writing Pylint plugins"
arch=('any')
url="https://github.com/landscapeio/pylint-plugin-utils"
license=('GPL2')
depends=('python' 'python-pylint')
makedepends=('python-setuptools' 'python-poetry-core')
#source=("https://pypi.io/packages/source/p/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz")
source=("https://github.com/landscapeio/pylint-plugin-utils/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('e8ff1e1777fee53b0214fb766a6dd15f9c10eb9183a652c888d0e1f453023323')

build() {
  cd "${_pypi_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
  #python setup.py build
}

package() {
    cd "${_pypi_pkgname}-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
    #python setup.py install --prefix="/usr" --root="${pkgdir}" --optimize=1
    install -Dm755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE
}

check(){
    cd "${_pypi_pkgname}-${pkgver}"

    # For nosetests
    #nosetests

    # For pytest
    pytest
}

# vim:set ts=2 sw=2 et: