From 64a07ff93346cff4a85bcbcd452f19a7f54b5063 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sun, 14 Aug 2022 22:23:24 -0700 Subject: [PATCH] testing/py3-whatthepatch: new aport --- testing/py3-whatthepatch/APKBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testing/py3-whatthepatch/APKBUILD diff --git a/testing/py3-whatthepatch/APKBUILD b/testing/py3-whatthepatch/APKBUILD new file mode 100644 index 00000000000..f2e3247e990 --- /dev/null +++ b/testing/py3-whatthepatch/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Clayton Craft +# Maintainer: Clayton Craft +pkgname=py3-whatthepatch +pkgver=1.0.2 +pkgrel=0 +pkgdesc="library for parsing and applying patch files" +url="https://github.com/cscorley/whatthepatch" +arch="noarch" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +checkdepends="py3-pytest" +source="$pkgname-$pkgver.tar.gz::https://github.com/cscorley/whatthepatch/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir/whatthepatch-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 -m pytest +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums=" +0b39931fa005df6490977ed523ab181e5c2130d2846295bea95c67f5e9163d66c1977e8bd86e745a8d2ceb782eb503266d360ab1a8b33b143739bc2a49018c68 py3-whatthepatch-1.0.2.tar.gz +" -- GitLab