diff options
author | zlg <zlg@zlg.space> | 2018-11-21 03:12:03 -0800 |
---|---|---|
committer | zlg <zlg@zlg.space> | 2018-11-21 03:35:27 -0800 |
commit | c12b7cd5ec3403d200f7dc16e09594d650d5c9da (patch) | |
tree | 2b5187d10f0c74fc48d8fad8b8e17b608d84fb9e /user/py3-idna | |
parent | eaf72d253e0cd59ab4b045def9ee24666511cc4b (diff) | |
download | packages-c12b7cd5ec3403d200f7dc16e09594d650d5c9da.tar.gz packages-c12b7cd5ec3403d200f7dc16e09594d650d5c9da.tar.bz2 packages-c12b7cd5ec3403d200f7dc16e09594d650d5c9da.tar.xz packages-c12b7cd5ec3403d200f7dc16e09594d650d5c9da.zip |
user/py3-idna: new package
Diffstat (limited to 'user/py3-idna')
-rw-r--r-- | user/py3-idna/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/py3-idna/APKBUILD b/user/py3-idna/APKBUILD new file mode 100644 index 000000000..145fc438e --- /dev/null +++ b/user/py3-idna/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: zlg <zlg+adelie@zlg.space> +pkgname=py3-idna +_pkgname=${pkgname#py3-} +pkgver=2.7 +pkgrel=0 +pkgdesc="IDNA 2008 and UTS #46 for Python" +url="https://github.com/kjd/idna" +arch="noarch" +license="BSD" +depends="" +makedepends="python3-dev" +subpackages="" +source="idna-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="6fcfd9aec25d6ca14a72e5e236d612ec9aba81aa41e31001bd4cf3cc5499ac133e05bf8393fc2e5d54ea7602ba6601c87e7a219339d9a4979198572d78cf4987 idna-2.7.tar.gz" |