aboutsummaryrefslogtreecommitdiff
path: root/testing/py3-dulwich/APKBUILD
blob: 27ae1502bf492f813b77e0aa45553352c698df98 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-dulwich
_pkgname=dulwich
pkgver=0.20.3
pkgrel=0
pkgdesc="A 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"
options="!check" # Tests are failing (http-backend)
depends="py3-certifi py3-urllib3"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-mock"
source="https://github.com/dulwich/dulwich/archive/$_pkgname-$pkgver.tar.gz"
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="7306b4ed13095111551edee8221c4484ebe923b1c0bad64da879199897ee2466432dbbf516e1831d614f2e35dd7f23aefc4479ed3a89bbe29fa11021cdfa95e2  dulwich-0.20.3.tar.gz"