aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-dulwich/APKBUILD
blob: 7db8cc997f7cf2ca36f8a5c1bc2fd24b5ee4d20c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-dulwich
_pkgname=dulwich
pkgver=0.20.50
pkgrel=0
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 py3-gpgme"
source="https://github.com/jelmer/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="
791a9185a0b6e66f0544ec00c598d700b451af178a9160ebb4e611c9900ccbe5f45aba698902e02f73b7e0173309ba3358190ce6f6092ccf3a64dd962b44cce3  dulwich-0.20.50.tar.gz
23743222a8306518c855b1f9bfd56e8b09624af4199541c1377a9dea5863f4489133e346b181f4018a64402d45a82ada42130ac1bdfa9163e7ff6586df7e3931  skip-network-tests.patch
"