diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 19 insertions, 20 deletions
@@ -1,10 +1,10 @@ pkgbase = python-importlab pkgdesc = A library to calculate Python dependency graphs - pkgver = 0.8 + pkgver = 0.8.1 pkgrel = 1 url = https://github.com/google/importlab arch = any - license = Apache + license = Apache-2.0 makedepends = git makedepends = python-build makedepends = python-installer @@ -12,7 +12,7 @@ pkgbase = python-importlab makedepends = python-wheel depends = python depends = python-networkx - source = python-importlab::git+https://github.com/google/importlab#commit=13737c19e056f1095486c522adafa0f4b71f31a8 - b2sums = SKIP + source = https://files.pythonhosted.org/packages/source/i/importlab/importlab-0.8.1.tar.gz + b2sums = 4379a63e9635b13a4b82d66b18032286e51aa4bf479dd2121d3aa8231453bb595bea76a5646df2bc30fcd72b4ac451fec5b2d13fb9f3fa1e8ce5d7aac7410f22 pkgname = python-importlab @@ -1,14 +1,15 @@ -# Maintainer: George Rawlinson <grawlinson@archlinux.org> +# Maintainer: cqzw555 < cqzw555@163.com > +# Contributor: George Rawlinson <grawlinson@archlinux.org> # Contributor: Mark Merritt <mark@marktmerritt.com> # Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com> - -pkgname=python-importlab -pkgver=0.8 +_name=importlab +pkgname=python-$_name +pkgver=0.8.1 pkgrel=1 pkgdesc='A library to calculate Python dependency graphs' arch=('any') url='https://github.com/google/importlab' -license=('Apache') +license=('Apache-2.0') depends=( 'python' 'python-networkx' @@ -22,31 +23,29 @@ makedepends=( ) #checkdepends=('') #optdepends=('') -_commit='13737c19e056f1095486c522adafa0f4b71f31a8' -source=("$pkgname::git+$url#commit=$_commit") -b2sums=('SKIP') +source=("https://files.pythonhosted.org/packages/source/i/$_name/$_name-$pkgver.tar.gz") +b2sums=('4379a63e9635b13a4b82d66b18032286e51aa4bf479dd2121d3aa8231453bb595bea76a5646df2bc30fcd72b4ac451fec5b2d13fb9f3fa1e8ce5d7aac7410f22') pkgver() { - cd "$pkgname" + cd "$_name-$pkgver" # get from setup.py since there are no tagged releases grep '^VERSION' setup.py | sed -e "s/VERSION = '\(.*\)'/\1/" } build() { - cd "$pkgname" + cd "$_name-$pkgver" python -m build --wheel --no-isolation } -#check() { -# cd "$pkgname" -# -# # TODO -#} +check() { + cd "$_name-$pkgver" + pytest +} package() { - cd "$pkgname" + cd "$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl } |