void-packages/srcpkgs/python3-ecdsa/template
2020-10-10 10:22:28 -04:00

23 lines
661 B
Bash

# Template file for 'python3-ecdsa'
pkgname=python3-ecdsa
version=0.14.1
revision=5
wrksrc="ecdsa-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-six"
short_desc="Implementation of ECDSA in Python3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/warner/python-ecdsa/"
distfiles="${PYPI_SITE}/e/ecdsa/ecdsa-${version}.tar.gz"
checksum=64c613005f13efec6541bb0a33290d0d03c27abab5f15fbab20fb0ee162bdd8e
pre_build() {
# use system six
find . -type f -name '*.py' -exec sed -i 's/from \(ecdsa\|\)\.six/from six/g' {} +
rm -f ecdsa/six.py
}
post_install() {
vlicense LICENSE
}