[arch-commits] Commit in python-pygit2/repos (2 files)

David Runge dvzrv at gemini.archlinux.org
Sun Nov 21 14:19:34 UTC 2021


    Date: Sunday, November 21, 2021 @ 14:19:34
  Author: dvzrv
Revision: 1053026

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pygit2/repos/community-staging-x86_64/
  python-pygit2/repos/community-staging-x86_64/PKGBUILD
    (from rev 1053025, python-pygit2/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: python-pygit2/repos/community-staging-x86_64/PKGBUILD (from rev 1053025, python-pygit2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-21 14:19:34 UTC (rev 1053026)
@@ -0,0 +1,38 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+
+pkgname=python-pygit2
+pkgver=1.7.0
+pkgrel=2
+pkgdesc='Python bindings for libgit2'
+arch=('x86_64')
+url="https://github.com/libgit2/pygit2"
+license=('GPL2')
+depends=('libgit2>=1:1.3.0' 'python-cffi' 'python-six' 'python-cached-property')
+makedepends=('python-cffi' 'python-setuptools' 'git' 'python-six')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz"::$url/archive/v$pkgver.tar.gz)
+sha256sums=('8fbd1b91bd594f5f9cdd515e3a691ec148fd431838455487663d73387183d844')
+
+prepare() {
+	cd "pygit2-$pkgver"
+	# Disable tests that do stuff online
+	sed -i -e '/has_network/s/True/False/' test/utils.py
+}
+
+build() {
+	cd "pygit2-$pkgver"
+	python setup.py build
+}
+
+check() {
+	cd "pygit2-$pkgver"
+	python setup.py pytest
+}
+
+package() {
+	cd "pygit2-$pkgver"
+	LANG=en_US.UTF8 python setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list