aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-dulwich/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-dulwich/APKBUILD')
-rw-r--r--community/py3-dulwich/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/py3-dulwich/APKBUILD b/community/py3-dulwich/APKBUILD
new file mode 100644
index 0000000000..460a25763f
--- /dev/null
+++ b/community/py3-dulwich/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-dulwich
+_pkgname=dulwich
+pkgver=0.20.18
+pkgrel=1
+pkgdesc="python implementation of the Git file formats and protocols"
+url="https://www.dulwich.io/"
+arch="all"
+license="GPL-2.0-or-later OR Apache-2.0"
+depends="py3-certifi py3-urllib3"
+makedepends="py3-setuptools python3-dev"
+checkdepends="py3-mock"
+source="https://github.com/dulwich/dulwich/archive/$_pkgname-$pkgver.tar.gz
+ skip-network-tests.patch
+ "
+builddir="$srcdir"/$_pkgname-dulwich-$pkgver
+
+replaces="py-dulwich" # Backwards compatibility
+provides="py-dulwich=$pkgver-r$pkgrel" # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 -m unittest dulwich.tests.test_suite
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="0564cb5d5a6210d199acb70e918159bb31cf02063f89298c2d1e858b99b84f7f002960675032e8fe237ad26bec010272e1c354dd4c24e641ae94fadd767af847 dulwich-0.20.18.tar.gz
+b9e27253476be81d10472786fbaa7cb726240a5aa36b14757be2ffd15cdc59f4272e722d4e59753f97472981fce7efdd37021d01383400b682a981c4dfc404b2 skip-network-tests.patch"