# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=py3-hg-git
_pkgname="hg-git"
pkgver=1.1.1
pkgrel=1
pkgdesc="Mercurial plugin to pull and push from Git"
url="https://hg-git.github.io"
arch="noarch"
license="GPL-2.0-only"
depends="py3-dulwich"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-setuptools_scm
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # No tests.

build() {
	SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
eeee47258ac4e9ef8a2dbaa75a660f4d9732adf37d701e8f13e60cca699705a7a1a9aa1ab50b48132ddfd2239f379a8501a8ecd2a85659f14690d713cc7d28c3  hg-git-1.1.1.tar.gz
"
