From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1167287-garchives=archives.gentoo.org@lists.gentoo.org>
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 F34ED138350
	for <garchives@archives.gentoo.org>; Sun,  3 May 2020 09:33:32 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 04D3DE09D8;
	Sun,  3 May 2020 09:33:31 +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 C0A0FE09D5
	for <gentoo-commits@lists.gentoo.org>; Sun,  3 May 2020 09:33:30 +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 18C4434F295
	for <gentoo-commits@lists.gentoo.org>; Sun,  3 May 2020 09:33:29 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 17CD921D
	for <gentoo-commits@lists.gentoo.org>; Sun,  3 May 2020 09:33:26 +0000 (UTC)
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
Message-ID: <1588495941.0ef1df6a8741e456a193eec6d339d9b5b57f0b58.andrewammerlaan@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pure-protobuf/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: dev-python/pure-protobuf/Manifest dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild
X-VCS-Directories: dev-python/pure-protobuf/
X-VCS-Committer: andrewammerlaan
X-VCS-Committer-Name: Andrew Ammerlaan
X-VCS-Revision: 0ef1df6a8741e456a193eec6d339d9b5b57f0b58
X-VCS-Branch: master
Date: Sun,  3 May 2020 09:33:26 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 33d80bef-6b19-4db6-bfa4-a8a4305dca2f
X-Archives-Hash: 2295894be0db5c33f08c21af86d4d724
Message-ID: <20200503093326.sU0CDcgSCq3PsigECvPHj0YyXvGR6phXtStM0pNEShc@z>

commit:     0ef1df6a8741e456a193eec6d339d9b5b57f0b58
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sun May  3 08:52:21 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sun May  3 08:52:21 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0ef1df6a

dev-python/pure-protobuf: enable tests

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-python/pure-protobuf/Manifest                   |  2 +-
 dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/dev-python/pure-protobuf/Manifest b/dev-python/pure-protobuf/Manifest
index 432ab18..2bfe6a0 100644
--- a/dev-python/pure-protobuf/Manifest
+++ b/dev-python/pure-protobuf/Manifest
@@ -1 +1 @@
-DIST pure-protobuf-2.0.0.tar.gz 14331 BLAKE2B 9936341ddc17918972141f9d167af70e281082cc154d2e96207f7b3fc8d07519284a332976bb694c63c9ec348b2b7076f3f74305af52edff4afe00593047461d SHA512 6eb3d85b82d9742c1b87bc46c261e707439f16a034824aa1751232ebf534be1bf5f7d7b0053834a1412e6309c73f1dcc323851ffffff262c8bbe266b5153051b
+DIST pure-protobuf-2.0.0.tar.gz 17576 BLAKE2B 49979559b3c08eb9abdddfa80e78ca4d953347a005b042d5b69aa4c6caef185c358408b1bf54d9161c0cadf69422b1ed033c74b324e947328c55f8b6ec4fd050 SHA512 a8d5211f34d0d6fab28d8b54fb3bb87d41a13b61a01f6f79f47fc1c0eafaf1ab17ddfd323c1035fcd4794b7b23823f48f38af3aa485835683f824cdd4689b098

diff --git a/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild b/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild
index bed1ae6..1325cff 100644
--- a/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild
+++ b/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild
@@ -12,8 +12,19 @@ HOMEPAGE="
 	https://github.com/eigenein/protobuf
 	https://pypi.org/project/pure-protobuf/
 "
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/eigenein/protobuf/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
+
+S="${WORKDIR}/protobuf-${PV}"
+
+distutils_enable_tests pytest
+
+python_install() {
+	# Package installs 'tests' package which is forbidden and likely a bug in the build system.
+	rm -r tests || die
+
+	python_foreach_impl distutils-r1_python_install
+}