void-packages/srcpkgs/python-urlnorm/template

23 lines
667 B
Bash

# Template file for 'python-urlnorm'
pkgname=python-urlnorm
version=1.1.4
revision=1
noarch=yes
wrksrc="urlnorm-${version}"
build_style=python-module
python_versions="2.7"
pycompile_module="urlnorm"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
short_desc="Python2 module for normalizing URLs"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="MIT"
homepage="https://github.com/jehiah/urlnorm"
distfiles="${PYPI_SITE}/u/urlnorm/urlnorm-${version}.tar.gz"
checksum=3cde99b7ec8edb6768dfecbed5d97e9bd0c784b0593ee28a3f83b20419dcd75e
post_install() {
sed -n '/^__license__/,/^"""/{/"""$/d;p}' urlnorm.py > LICENSE
vlicense LICENSE
}