# Maintainer: Hugo Osvaldo Barrera pkgname=py3-pip-tools pkgver=7.2.0 pkgrel=0 pkgdesc="A set of tools to keep your pinned Python dependencies fresh." url="https://pip-tools.rtfd.io" arch="noarch" license="BSD-3-Clause" source="https://files.pythonhosted.org/packages/source/p/pip-tools/pip-tools-$pkgver.tar.gz" depends=" py3-build py3-click py3-pip " makedepends=" py3-gpep517 py3-installer py3-setuptools_scm py3-wheel " checkdepends="py3-pytest-xdist" subpackages="$pkgname-pyc" builddir="$srcdir/pip-tools-$pkgver" # requires every build backend in the universe options="!check" build() { SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" \ gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 235680a23ac6105f30530d0425a67a260ee56302094bcc96f9582ad0a0495d752038036dd4a20cbe8d570a0b535725067d6c231f1ba970a907f1ff076f40163c pip-tools-7.2.0.tar.gz "