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
+}

Reply via email to