From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 79D14138334 for ; Fri, 15 Jun 2018 06:03:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77F4AE0883; Fri, 15 Jun 2018 06:03:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E7BAEE0883 for ; Fri, 15 Jun 2018 06:03:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 97B54335C7F for ; Fri, 15 Jun 2018 06:03:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1482D2D6 for ; Fri, 15 Jun 2018 06:03:39 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1529042601.4b6fe56b20bef9571e9b3c3ff76f46ca9615dd5a.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyu2f/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyu2f/Manifest dev-python/pyu2f/metadata.xml dev-python/pyu2f/pyu2f-0.1.4.ebuild X-VCS-Directories: dev-python/pyu2f/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 4b6fe56b20bef9571e9b3c3ff76f46ca9615dd5a X-VCS-Branch: master Date: Fri, 15 Jun 2018 06:03:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2d6ea763-33dd-409f-847f-dacf2c0c1fea X-Archives-Hash: ded21d5b182e4bc2ed5328a9ea158193 commit: 4b6fe56b20bef9571e9b3c3ff76f46ca9615dd5a Author: Zac Medico gentoo org> AuthorDate: Fri Jun 15 03:49:14 2018 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Jun 15 06:03:21 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b6fe56b dev-python/pyu2f: new package Package-Manager: Portage-2.3.40, Repoman-2.3.9 RepoMan-Options: --force dev-python/pyu2f/Manifest | 1 + dev-python/pyu2f/metadata.xml | 12 ++++++++++ dev-python/pyu2f/pyu2f-0.1.4.ebuild | 46 +++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/dev-python/pyu2f/Manifest b/dev-python/pyu2f/Manifest new file mode 100644 index 00000000000..aa7cbd9f231 --- /dev/null +++ b/dev-python/pyu2f/Manifest @@ -0,0 +1 @@ +DIST pyu2f-0.1.4.tar.gz 38797 BLAKE2B 4240083b03bd596d1f87e42047980ab7c75d0064eec0ed2050d77bb92d26fac651af515c2c9b10d338e27ecd778e80ff47b5c33a68cd86328dc913c0e70cb1da SHA512 16f948b812edd5f0e4d97350872809b7c1b52f38eea49170e4aa21e0f695935dc0d71d4fa077ee1c1a3ef2f0711d62f0cc49983a89c841aa31aadf7b76340035 diff --git a/dev-python/pyu2f/metadata.xml b/dev-python/pyu2f/metadata.xml new file mode 100644 index 00000000000..703402ed3f9 --- /dev/null +++ b/dev-python/pyu2f/metadata.xml @@ -0,0 +1,12 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + pyu2f + google/pyu2f + + diff --git a/dev-python/pyu2f/pyu2f-0.1.4.ebuild b/dev-python/pyu2f/pyu2f-0.1.4.ebuild new file mode 100644 index 00000000000..ec3ffe52ec8 --- /dev/null +++ b/dev-python/pyu2f/pyu2f-0.1.4.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Python based U2F host library" +HOMEPAGE="https://github.com/google/pyu2f" +# pypi tarball lacks unit tests +#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/google/pyu2f/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="test" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pyfakefs[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/unittest2[${PYTHON_USEDEP}] + ) +" + +DOCS=( CONTRIBUTING.md README.md ) + +python_prepare_all() { + sed -e 's:json.loads(communicate_json):json.loads(communicate_json.decode()):' \ + -i pyu2f/tests/customauthenticator_test.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v pyu2f/tests || die "Tests failed under ${EPYTHON}" +}