1 |
commit: 5079b5bcc0ab71b4bb5a228aede0b34bd9bbc710 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 1 07:46:17 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 1 07:47:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5079b5bc |
7 |
|
8 |
dev-python/pycryptodome: Initial commit, #602022 |
9 |
|
10 |
Initial commit for dev-python/pycrypto fork and partially drop-in |
11 |
replacement. Let's start with a simple, separate package and see how it |
12 |
works out for us. |
13 |
|
14 |
dev-python/pycryptodome/Manifest | 1 + |
15 |
dev-python/pycryptodome/metadata.xml | 8 +++++++ |
16 |
dev-python/pycryptodome/pycryptodome-3.4.5.ebuild | 28 +++++++++++++++++++++++ |
17 |
3 files changed, 37 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..8cee92c95ea |
22 |
--- /dev/null |
23 |
+++ b/dev-python/pycryptodome/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST pycryptodome-3.4.5.tar.gz 6968315 SHA256 356740c25bee66cf02fce496154f2b9699e5c75c1c6c7e382064d8b6c2cac2dd SHA512 666a90e0cd756b26212df29b2d88c7443bd12fcbf0db6afc6e251a4e92a8528d82495528610c834cd6c066eb384a83f075cb49d52c60c65af04c0e5ff3ce72f8 WHIRLPOOL 41f5d5f64eae7de88b8a6a86f6868a90e3b9eb73f3747cc8e95eb2f30225c3db5ec3b75c9cf92f3542069f3773a0f12a511b113d02046b22473559180d764c03 |
26 |
|
27 |
diff --git a/dev-python/pycryptodome/metadata.xml b/dev-python/pycryptodome/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000000..904952d1b58 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pycryptodome/metadata.xml |
32 |
@@ -0,0 +1,8 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>python@g.o</email> |
38 |
+ <name>Python project</name> |
39 |
+ </maintainer> |
40 |
+</pkgmetadata> |
41 |
|
42 |
diff --git a/dev-python/pycryptodome/pycryptodome-3.4.5.ebuild b/dev-python/pycryptodome/pycryptodome-3.4.5.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..d6eebef2a14 |
45 |
--- /dev/null |
46 |
+++ b/dev-python/pycryptodome/pycryptodome-3.4.5.ebuild |
47 |
@@ -0,0 +1,28 @@ |
48 |
+# Copyright 1999-2017 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
55 |
+PYTHON_REQ_USE="threads(+)" |
56 |
+ |
57 |
+inherit distutils-r1 |
58 |
+ |
59 |
+DESCRIPTION="A self-contained cryptographic library for Python" |
60 |
+HOMEPAGE="https://github.com/Legrandin/pycryptodome" |
61 |
+SRC_URI="https://github.com/Legrandin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="BSD-2 Unlicense" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+IUSE="" |
67 |
+ |
68 |
+RDEPEND="dev-libs/gmp:0 |
69 |
+ virtual/python-cffi[${PYTHON_USEDEP}] |
70 |
+ !dev-python/pycrypto" |
71 |
+DEPEND="${RDEPEND}" |
72 |
+ |
73 |
+python_test() { |
74 |
+ esetup.py test |
75 |
+} |