# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-hgtools
_pkgname=hgtools
pkgver=6.5.2
pkgrel=0
pkgdesc="Classes and setuptools plugin for Mercurial and Git repositories"
url="https://pypi.python.org/pypi/hgtools"
arch="noarch"
license="GPL-2.0"
makedepends="py-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="8927d0b1970a367116d27a62d1f673af5de6a064cff1187d05139a4c9bb78886639c9683c012526393be046f589eb66793f7cbab2bc4fe6f52a582f70e56915f  hgtools-6.5.2.tar.gz"
