maintainer="Wen Heping " pkgname=py3-gitpython pkgver=3.2.0 pkgrel=0 pkgdesc="Python3 Git Library" url="https://github.com/gitpython-developers/GitPython" arch="noarch" license="BSD-3-Clause" depends=" git py3-gitdb2 py3-typing-extensions " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-pytest py3-pytest-cov py3-pytest-sugar py3-toml " subpackages="$pkgname-pyc" source="https://github.com/gitpython-developers/GitPython/archive/$pkgver/GitPython-$pkgver.tar.gz" builddir="$srcdir/GitPython-$pkgver" # secfixes: # 3.1.61-r0: # - CVE-2026-76217 # - CVE-2026-76218 # - CVE-2026-76219 # - CVE-2026-76220 # - CVE-2026-76221 # - CVE-2026-76222 # - CVE-2026-78675 # - CVE-2026-78676 # - CVE-2026-78677 # - CVE-2026-78678 # 3.1.49-r0: # - CVE-2026-42215 # - CVE-2026-42284 # 3.1.37-r0: # - CVE-2023-41040 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 # There are more tests but they require testing/py3-ddt .testenv/bin/python3 -m pytest test/test_config.py } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" fa2862a8fd18c8bb26ed6bf523ec79d8a1eaa41364f29f2265774561ddf6a10eb67d47bd0df29023bda7bd9940ef64486210513f3dcc6dcf345c6dcf8480cd68 GitPython-3.2.0.tar.gz "