psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

39 lines
944 B
Plaintext

# Maintainer: Pedro Filipe <xpecex@outlook.com>
pkgname=py3-patiencediff
pkgver=0.2.13
pkgrel=0
pkgdesc="Patiencediff Python and C implementations"
url="https://www.breezy-vcs.org/"
arch="all"
license="GPL-2.0-or-later"
depends="python3"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
python3-dev
"
source="$pkgname-$pkgver.tar.gz::https://github.com/breezy-team/patiencediff/archive/v$pkgver.tar.gz"
builddir="$srcdir/patiencediff-$pkgver"
build() {
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 unittest discover
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
b06d7ee6183169cdc9912dbfa02c09fef963b6840a3fae24096e7f0be1356dd6eea283ade528a9195b9e9f7ff1eb8f5047aeaa770a9dc7ba39337fa735a02b7a py3-patiencediff-0.2.13.tar.gz
"