aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2022-01-20 19:00:13 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2022-01-21 11:53:29 +0000
commit6d0bc7df2377c75cd1e384de3f7f3553be9a29fe (patch)
treec45812f717036fe7da435a6d98802e66fe4d1584
parent016d860d7fe37c0d61ebb94aefb842b0daa382d6 (diff)
downloadaports-6d0bc7df2377c75cd1e384de3f7f3553be9a29fe.tar.gz
aports-6d0bc7df2377c75cd1e384de3f7f3553be9a29fe.tar.bz2
aports-6d0bc7df2377c75cd1e384de3f7f3553be9a29fe.tar.xz
community/py3-msoffcrypto-tool: upgrade to 5.0.0
* switch to github for source archive * enable tests
-rw-r--r--community/py3-msoffcrypto-tool/APKBUILD22
1 files changed, 14 insertions, 8 deletions
diff --git a/community/py3-msoffcrypto-tool/APKBUILD b/community/py3-msoffcrypto-tool/APKBUILD
index c5d7821f88..752cf61a00 100644
--- a/community/py3-msoffcrypto-tool/APKBUILD
+++ b/community/py3-msoffcrypto-tool/APKBUILD
@@ -1,26 +1,32 @@
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-msoffcrypto-tool
-pkgver=4.12.0
-pkgrel=2
+pkgver=5.0.0
+pkgrel=0
pkgdesc="tool and library for decrypting MS Office files with passwords or other keys"
url="https://github.com/nolze/msoffcrypto-tool"
arch="noarch"
license="MIT"
depends="python3 py3-cryptography py3-olefile"
-makedepends="py3-setuptools"
-source="https://files.pythonhosted.org/packages/source/m/msoffcrypto-tool/msoffcrypto-tool-$pkgver.tar.gz"
-options="!check" #tests are not included in pypi archive
+makedepends="pyproject2setuppy"
+checkdepends="bash py3-pytest"
+source="$pkgname-$pkgver.tar.gz::https://github.com/nolze/msoffcrypto-tool/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/msoffcrypto-tool-$pkgver"
build() {
- python3 setup.py build
+ python3 -m pyproject2setuppy.main build
+}
+
+check() {
+ python3 -m pyproject2setuppy.main install --root="$PWD/test_install"
+ local _p="$PWD/test_install/usr"
+ PATH="$_p/bin:$PATH" PYTHONPATH="$(find "$_p" -name "site*")" pytest -v
}
package() {
- python3 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
}
sha512sums="
-1e45906d7daa99e93af866a5e47899bcb162fe8b386945a629af3aec09260f4f747df0e2407ed8bb4d3e153c100c7898fbe9d4f5c36dad6c8bf0974a7310a12e msoffcrypto-tool-4.12.0.tar.gz
+e2c03384d6447146ef0790da9d40c070e5fe9af3d2273ed1eb6410025146db7917df0f5704a8f6734b4f372da59e3f84ad3b1262715ca9f3b5b87c8dc4ad9847 py3-msoffcrypto-tool-5.0.0.tar.gz
"