1 |
commit: ad987d5e1cfcf57711f2f5014033e754801689b2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 20 23:13:50 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 20 23:44:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad987d5e |
7 |
|
8 |
dev-python/pyblake2: New package |
9 |
|
10 |
Add a package providing Python extension with BLAKE2, for use |
11 |
as a fallback hash provider in sys-apps/portage. |
12 |
|
13 |
dev-python/pyblake2/Manifest | 1 + |
14 |
dev-python/pyblake2/metadata.xml | 15 +++++++++++++++ |
15 |
dev-python/pyblake2/pyblake2-0.9.3.ebuild | 20 ++++++++++++++++++++ |
16 |
3 files changed, 36 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pyblake2/Manifest b/dev-python/pyblake2/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..3dd6e516a50 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pyblake2/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pyblake2-0.9.3.tar.gz 130641 SHA256 626448e1fe1cc01d2197118954bec9f158378577e12686d5b01979f7f0fa2212 SHA512 6336a7f7e79bd3e6ff7f8ff4d279ae170e86f1464b9fa9e7ea7f0dbbac6fcc044caf225111e065f9cd9cdeea0f81fae8d373e1f65be3e418929f53fad063205e WHIRLPOOL 0d8f2aaf35a5eb0ebdedd9219a0ee8b126c93b11ae3e406ef637d8930a34783886b212ce50a33d677b0a19289cd32f40dc3da22a9a9fec108b481268f153d45b |
25 |
|
26 |
diff --git a/dev-python/pyblake2/metadata.xml b/dev-python/pyblake2/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..98aa90fe67a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pyblake2/metadata.xml |
31 |
@@ -0,0 +1,15 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>mgorny@g.o</email> |
37 |
+ <name>Michał Górny</name> |
38 |
+ </maintainer> |
39 |
+ <maintainer type="project"> |
40 |
+ <email>python@g.o</email> |
41 |
+ </maintainer> |
42 |
+ <upstream> |
43 |
+ <remote-id type="github">dchest/pyblake2</remote-id> |
44 |
+ <remote-id type="pypi">pyblake2</remote-id> |
45 |
+ </upstream> |
46 |
+</pkgmetadata> |
47 |
|
48 |
diff --git a/dev-python/pyblake2/pyblake2-0.9.3.ebuild b/dev-python/pyblake2/pyblake2-0.9.3.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..37d5457bb6d |
51 |
--- /dev/null |
52 |
+++ b/dev-python/pyblake2/pyblake2-0.9.3.ebuild |
53 |
@@ -0,0 +1,20 @@ |
54 |
+# Copyright 1999-2017 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=6 |
58 |
+ |
59 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy ) |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+DESCRIPTION="BLAKE2 hash function extension module" |
63 |
+HOMEPAGE="https://github.com/dchest/pyblake2 https://pypi.python.org/pypi/pyblake2" |
64 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="CC0-1.0" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~x86" |
69 |
+IUSE="" |
70 |
+ |
71 |
+python_test() { |
72 |
+ "${EPYTHON}" test/test.py || die "Tests fail with ${EPYTHON}" |
73 |
+} |