summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a0f8535d01bb471b0428e5999777e6554a45bbc (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
45
46
47
48
49
50
51
52
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Mark Merritt <mark@marktmerritt.com>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>

pkgname=python-importlab
pkgver=0.8
pkgrel=1
pkgdesc='A library to calculate Python dependency graphs'
arch=('any')
url='https://github.com/google/importlab'
license=('Apache')
depends=(
  'python'
  'python-networkx'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
#checkdepends=('')
#optdepends=('')
_commit='13737c19e056f1095486c522adafa0f4b71f31a8'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd "$pkgname"

  # get from setup.py since there are no tagged releases
  grep '^VERSION' setup.py | sed -e "s/VERSION = '\(.*\)'/\1/"
}

build() {
  cd "$pkgname"

  python -m build --wheel --no-isolation
}

#check() {
#  cd "$pkgname"
#
#  # TODO
#}

package() {
  cd "$pkgname"

  python -m installer --destdir="$pkgdir" dist/*.whl
}