1 |
commit: 0ef1df6a8741e456a193eec6d339d9b5b57f0b58 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Sun May 3 08:52:21 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun May 3 08:52:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0ef1df6a |
7 |
|
8 |
dev-python/pure-protobuf: enable tests |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/pure-protobuf/Manifest | 2 +- |
14 |
dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild | 13 ++++++++++++- |
15 |
2 files changed, 13 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pure-protobuf/Manifest b/dev-python/pure-protobuf/Manifest |
18 |
index 432ab18..2bfe6a0 100644 |
19 |
--- a/dev-python/pure-protobuf/Manifest |
20 |
+++ b/dev-python/pure-protobuf/Manifest |
21 |
@@ -1 +1 @@ |
22 |
-DIST pure-protobuf-2.0.0.tar.gz 14331 BLAKE2B 9936341ddc17918972141f9d167af70e281082cc154d2e96207f7b3fc8d07519284a332976bb694c63c9ec348b2b7076f3f74305af52edff4afe00593047461d SHA512 6eb3d85b82d9742c1b87bc46c261e707439f16a034824aa1751232ebf534be1bf5f7d7b0053834a1412e6309c73f1dcc323851ffffff262c8bbe266b5153051b |
23 |
+DIST pure-protobuf-2.0.0.tar.gz 17576 BLAKE2B 49979559b3c08eb9abdddfa80e78ca4d953347a005b042d5b69aa4c6caef185c358408b1bf54d9161c0cadf69422b1ed033c74b324e947328c55f8b6ec4fd050 SHA512 a8d5211f34d0d6fab28d8b54fb3bb87d41a13b61a01f6f79f47fc1c0eafaf1ab17ddfd323c1035fcd4794b7b23823f48f38af3aa485835683f824cdd4689b098 |
24 |
|
25 |
diff --git a/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild b/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild |
26 |
index bed1ae6..1325cff 100644 |
27 |
--- a/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild |
28 |
+++ b/dev-python/pure-protobuf/pure-protobuf-2.0.0.ebuild |
29 |
@@ -12,8 +12,19 @@ HOMEPAGE=" |
30 |
https://github.com/eigenein/protobuf |
31 |
https://pypi.org/project/pure-protobuf/ |
32 |
" |
33 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+SRC_URI="https://github.com/eigenein/protobuf/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
|
36 |
LICENSE="MIT" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64" |
39 |
+ |
40 |
+S="${WORKDIR}/protobuf-${PV}" |
41 |
+ |
42 |
+distutils_enable_tests pytest |
43 |
+ |
44 |
+python_install() { |
45 |
+ # Package installs 'tests' package which is forbidden and likely a bug in the build system. |
46 |
+ rm -r tests || die |
47 |
+ |
48 |
+ python_foreach_impl distutils-r1_python_install |
49 |
+} |