From 6a7861bb4b944f5b73aba683ef46f59e22457f6c Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Wed, 26 Sep 2018 21:53:58 +0200 Subject: [PATCH] New package: python-pyotp-2.2.6 --- srcpkgs/python-pyotp/template | 34 ++++++++++++++++++++++++++++++++++ srcpkgs/python3-pyotp | 1 + 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/python-pyotp/template create mode 120000 srcpkgs/python3-pyotp diff --git a/srcpkgs/python-pyotp/template b/srcpkgs/python-pyotp/template new file mode 100644 index 00000000000..bcef0557ba9 --- /dev/null +++ b/srcpkgs/python-pyotp/template @@ -0,0 +1,34 @@ +# Template file for 'python-pyotp' +pkgname=python-pyotp +version=2.2.6 +revision=1 +noarch=yes +wrksrc="pyotp-${version}" +build_style=python-module +pycompile_module="pyotp" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="Python2 One-Time Password Library" +maintainer="Rasmus Thomsen " +license="0BSD" +homepage="https://github.com/pyotp/pyotp" +distfiles="${PYPI_SITE}/p/pyotp/pyotp-${version}.tar.gz" +checksum=dd9130dd91a0340d89a0f06f887dbd76dd07fb95a8886dc4bc401239f2eebd69 + +do_check() { + python -B test.py +} + +post_install() { + vlicense LICENSE +} + +python3-pyotp_package() { + short_desc="${short_desc/Python2/Python3}" + noarch=yes + pycompile_module="pyotp" + depends="python3" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-pyotp b/srcpkgs/python3-pyotp new file mode 120000 index 00000000000..e125d108587 --- /dev/null +++ b/srcpkgs/python3-pyotp @@ -0,0 +1 @@ +python-pyotp \ No newline at end of file