~dricottone/huttese-apk

ref: f17c9294cf3f64605a3079ef7adf6c8fa426d0c8 huttese-apk/sr.ht/py3-unidiff/APKBUILD -rw-r--r-- 826 bytes
f17c9294 — Drew DeVault py3-stripe: upgrade to 2.60.0 3 years ago
                                                                                
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
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-unidiff
_pyname=unidiff
pkgver=0.6.0
pkgrel=2
pkgdesc="Unified diff python parsing/metadata extraction library"
url="https://pypi.org/project/unidiff/"
arch="noarch"
license="MIT"
makedepends="py3-setuptools py3-pytest"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-unidiff py2-unidiff"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	pytest-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2e4d30221a3f3230c3559936e7423bdb32d36127eac5c1c7b3c3dc9946ea7276c5074d7fb962e80117052830f98b4dfa1af9bfdea8369293ba77ccef86303f87  unidiff-0.6.0.tar.gz"