void-packages/srcpkgs/python-ecdsa/template
2019-12-23 18:04:58 +01:00

37 lines
927 B
Bash

# Template file for 'python-ecdsa'
pkgname=python-ecdsa
version=0.14.1
revision=2
archs=noarch
wrksrc="${pkgname/python-/}-${version}"
build_style=python-module
pycompile_module="ecdsa"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
short_desc="Implementation of ECDSA in Python2"
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
}
python3-ecdsa_package() {
archs=noarch
depends="python3-six"
pycompile_module="ecdsa"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}