# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=pypykatz
pkgver=0.6.10
pkgrel=0
pkgdesc="Python implementation of Mimikatz"
url="https://github.com/skelsec/pypykatz"
arch="noarch"
license="MIT"
depends="
	py3-aesedb
	py3-aiosmb
	py3-aiowinreg
	py3-minidump
	py3-minikerberos
	py3-msldap
	py3-tqdm
	py3-unicrypto
	py3-winacl
	python3
	"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/skelsec/pypykatz/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
413f7ee6617f3d9afce602f3bbbc1eb950c76c45f2764af1e19bfec368f45a96bc00633d44249c019c2250f393d20ae2b403dda69ce9d4f51155839e82fd5bb3  pypykatz-0.6.10.tar.gz
"
