summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 834ac01243b4a412f0674c5dba813d030568d816 (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
# Maintainer: Felix Yan <felixonmars@archlinux.org>

_name=setuptools_scm
pkgname=python2-setuptools-scm
pkgver=5.0.2
pkgrel=2
pkgdesc="The blessed package to manage your versions by scm tags"
arch=('any')
license=('MIT')
url="https://github.com/pypa/setuptools_scm"
depends=('python2-setuptools')
checkdepends=('python2-pytest' 'python2-packaging' 'python2-pip')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('83a0cedd3449e3946307811a4c7b9d89c4b5fd464a2fb5eeccd0a5bb158ae5c8')

build() {
  cd $_name-$pkgver
  python2 setup.py build
}

package() {
  cd $_name-$pkgver
  python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}

check() {
  cd $_name-$pkgver
  PYTHONPATH="$(pwd)/build/lib" python2 -m pytest
}