[arch-commits] Commit in python-krb5/repos (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Sat Oct 16 21:39:41 UTC 2021
Date: Saturday, October 16, 2021 @ 21:39:40
Author: archange
Revision: 1030596
archrelease: copy trunk to community-x86_64
Added:
python-krb5/repos/community-x86_64/
python-krb5/repos/community-x86_64/PKGBUILD
(from rev 1030595, python-krb5/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-krb5/repos/community-x86_64/PKGBUILD (from rev 1030595, python-krb5/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-10-16 21:39:40 UTC (rev 1030596)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=krb5
+pkgname=python-${_pkg}
+pkgver=0.1.2
+pkgrel=1
+pkgdesc="krb5 API interface"
+arch=(x86_64)
+url="https://github.com/jborean93/pykrb5"
+license=(MIT)
+depends=(python krb5)
+makedepends=(cython python-setuptools)
+checkdepends=(python-pytest python-k5test)
+# No tests in pypi tarball
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('efba34f2e114517414a9e497adbf5f0272c6fe7ced9a004119ea5c1ef293f1e3')
+
+build() {
+ cd py${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd py${_pkg}-${pkgver}
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" pytest -v
+}
+
+package() {
+ cd py${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list