void-packages/srcpkgs/python3-oletools/template
Érico Nogueira f4d40f6de7 python3-oletools: don't use pip/wheel in checkdepends.
python3-pip was necessary because the 'python3 setup.py test' command
was trying to install the oletools package itself:

    error: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpjxhh802n', '--quiet', 'oletools>=0.54']' returned non-zero exit status 1.

Switching to pytest as the test runner fixes this.
2021-04-09 11:58:59 -03:00

28 lines
848 B
Bash

# Template file for 'python3-oletools'
pkgname=python3-oletools
version=0.56.1
revision=1
wrksrc="oletools-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-parsing python3-olefile python3-colorclass python3-easygui
python3-msoffcrypto-tool python3-pcodedmp"
checkdepends="$depends python3-pytest"
short_desc="Python3 library to analyze MS OLE2 and Office files"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="MIT"
homepage="https://github.com/decalage2/oletools"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=827cc577e253d946d5616e0a18062ed6aa837368fc19912c06e7d4c7ed502f77
post_install() {
vlicense oletools/LICENSE.txt
}
oletools_package() {
short_desc="${short_desc/library/tools}"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin
}
}