aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-backports.ssl_match_hostname
diff options
context:
space:
mode:
authorPeter Bui <pnutzh4x0r@gmail.com>2015-07-20 11:27:28 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-21 06:10:50 +0000
commita6249e090143fcf10d1927d76105cfc44d5b24ee (patch)
tree3bd32724a79d397b5cfd52b470f169646c378601 /main/py-backports.ssl_match_hostname
parenta8baa502663d34bb8738085a879f8f3c71a68779 (diff)
downloadaports-a6249e090143fcf10d1927d76105cfc44d5b24ee.tar.bz2
aports-a6249e090143fcf10d1927d76105cfc44d5b24ee.tar.xz
main/py-backports.ssl_match_hostname: move from testing
Diffstat (limited to 'main/py-backports.ssl_match_hostname')
-rw-r--r--main/py-backports.ssl_match_hostname/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/py-backports.ssl_match_hostname/APKBUILD b/main/py-backports.ssl_match_hostname/APKBUILD
new file mode 100644
index 0000000000..ed8600e746
--- /dev/null
+++ b/main/py-backports.ssl_match_hostname/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
+pkgname=py-backports.ssl_match_hostname
+_pkgname=backports.ssl_match_hostname
+pkgver=3.4.0.2
+pkgrel=0
+pkgdesc="The ssl.match_hostname() function from Python 3.4"
+url="https://bitbucket.org/brandon/backports.ssl_match_hostname"
+arch="noarch"
+license="PSF"
+depends="python"
+depends_dev="py-setuptools"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="https://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-${pkgver}.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1
+}
+
+md5sums="788214f20214c64631f0859dc79f23c6 backports.ssl_match_hostname-3.4.0.2.tar.gz"
+sha256sums="07410e7fb09aab7bdaf5e618de66c3dac84e2e3d628352814dc4c37de321d6ae backports.ssl_match_hostname-3.4.0.2.tar.gz"
+sha512sums="7e6033afbb5298a5eaafe91c3e2f7ba583706977826cc9441c9926a81b945714be95963f0261f88f4cb5df56673ca231e528cecbe84dff9e422fd11819842985 backports.ssl_match_hostname-3.4.0.2.tar.gz"