summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e484db4acb2edb930bf1be0b3d3bb88d5b3ceb6c (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
# Maintainer: Razer <razer@neuf.fr>
pkgname=python-pylint-django
_pypi_pkgname=pylint_django
pkgver=2.5.5
pkgrel=2
pkgdesc="A Pylint plugin to help Pylint understand the Django web framework"
arch=('any')
url="https://github.com/landscapeio/pylint-django"
license=('GPL2')
depends=(
'python-pylint'
'python-pylint-plugin-utils'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-poetry'
)
source=("https://pypi.io/packages/source/p/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz")
sha256sums=('2f339e4bf55776958283395c5139c37700c91bd5ef1d8251ef6ac88b5abbba9b')

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

package() {
  cd "${_pypi_pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -vDm644 -t "$pkgdir/usr/share/license/$pkgname" LICENSE
}
# vim:set ts=2 sw=2 et: