summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b39c71bc64df04843cb3a118dd0af7e2d5d869c8 (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=findimports
pkgver=2.5.0
pkgrel=1
pkgdesc="Python module import analysis tool"
url="https://github.com/mgedmin/findimports"
depends=('python')
makedepends=('python-setuptools')
license=('GPL')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('c2d0705dc75fed68af32180225c95277d4f3d299d901e8f68873c28a6f073c33')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python -m build --wheel --no-isolation
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./testsuite.py
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}