Skip to content

Commit

Permalink
community/python-gssapi: new aport
Browse files Browse the repository at this point in the history
  • Loading branch information
dimon222 committed Jun 2, 2019
1 parent 626c2d3 commit 34f26f3
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions community/python-gssapi/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
pkgname=py-gssapi
_pkgname=gssapi
pkgver=1.5.1
pkgrel=0
pkgdesc="A Python interface to RFC 2743/2744 (plus common extensions)"
url="https://github.com/pythongssapi/python-gssapi"
arch="all"
license="ISC"
depends=""
#checkdepends="py-nose py-shouldbe py-k5test" # Tests are missing alpine packages
makedepends="python2-dev python3-dev krb5-dev py-setuptools"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/g/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}

#check() {
# cd "$builddir"
# python2 -m pytest -xvv test.py
# python3 -m pytest -xvv test.py
#}

package() {
mkdir -p "$pkgdir"
}

_py2() {
_py python2
}

_py3() {
_py python3
}

_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"

cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}

sha512sums="d0c27360e1f54a322f311f102ad498a3794e5f22aa9e07f917fa074d02f1643932ba34d630761c62500e5f780a5c6b207ee4662507ca88f99fcfd4563d7241b0 gssapi-1.5.1.tar.gz"

0 comments on commit 34f26f3

Please sign in to comment.