1 |
commit: fb968a717836a9c27da811b488873258d73c7d4a |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 6 10:11:21 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 6 10:13:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb968a71 |
7 |
|
8 |
dev-python/whirlpool: remove last rited package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/635732 |
11 |
|
12 |
dev-python/whirlpool/Manifest | 1 - |
13 |
dev-python/whirlpool/files/tests.py | 96 ---------------------------- |
14 |
dev-python/whirlpool/metadata.xml | 12 ---- |
15 |
dev-python/whirlpool/whirlpool-0.3-r1.ebuild | 37 ----------- |
16 |
4 files changed, 146 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/whirlpool/Manifest b/dev-python/whirlpool/Manifest |
19 |
deleted file mode 100644 |
20 |
index 52ddc2322d8..00000000000 |
21 |
--- a/dev-python/whirlpool/Manifest |
22 |
+++ /dev/null |
23 |
@@ -1 +0,0 @@ |
24 |
-DIST Whirlpool-0.3.tar.gz 34508 BLAKE2B df489d96dbfad58487669605781a6f46108710ca2974120dc2535c4ed9468e7ce6589987e493fad56b3a3b97cc8427b33bef42b07e834c76b2b1b3672f90f83a SHA512 d9fed84ff0af885534e70f537c0c17f19ad46d31b2b1d77749328e6cba37a805bb8e178539d09a479b0d7a7e93d11f69858db5b3fdc6c3fad9a89fc727004770 |
25 |
|
26 |
diff --git a/dev-python/whirlpool/files/tests.py b/dev-python/whirlpool/files/tests.py |
27 |
deleted file mode 100644 |
28 |
index 521148b33ed..00000000000 |
29 |
--- a/dev-python/whirlpool/files/tests.py |
30 |
+++ /dev/null |
31 |
@@ -1,96 +0,0 @@ |
32 |
-import unittest |
33 |
- |
34 |
-import whirlpool |
35 |
- |
36 |
-from binascii import b2a_hex |
37 |
- |
38 |
- |
39 |
-results = { |
40 |
- 'empty' : '19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a73e83be698b288febcf88e3e03c4f0757ea8964e59b63d93708b138cc42a66eb3', |
41 |
- 'tqbfjotld' : 'b97de512e91e3828b40d2b0fdce9ceb3c4a71f9bea8d88e75c4fa854df36725fd2b52eb6544edcacd6f8beddfea403cb55ae31f03ad62a5ef54e42ee82c3fb35', |
42 |
- 'tqbfjotle' : 'c27ba124205f72e6847f3e19834f925cc666d0974167af915bb462420ed40cc50900d85a1f923219d832357750492d5c143011a76988344c2635e69d06f2d38c', |
43 |
- 'tqbf' : '317edc3c5172ea5987902aa9c4f1defedf4d5aa59209bdf7574cc6da0039852c24b8da70ecb07997ff83e86d32d2851215d3dcbd6bb9736bdef21c349d483e6d', |
44 |
-} |
45 |
- |
46 |
- |
47 |
-class TestWhirlpool(unittest.TestCase): |
48 |
- |
49 |
- def test_hash_empty(self): |
50 |
- self.assertEqual(b2a_hex(whirlpool.hash('')), results['empty']) |
51 |
- |
52 |
- def test_hash_fox(self): |
53 |
- self.assertEqual( |
54 |
- b2a_hex(whirlpool.hash('The quick brown fox jumps over the lazy dog')), |
55 |
- results['tqbfjotld']) |
56 |
- self.assertEqual( |
57 |
- b2a_hex(whirlpool.hash('The quick brown fox jumps over the lazy eog')), |
58 |
- results['tqbfjotle']) |
59 |
- |
60 |
- def test_new_empty(self): |
61 |
- wp = whirlpool.new() |
62 |
- self.assertEqual(b2a_hex(wp.digest()), results['empty']) |
63 |
- self.assertEqual(wp.hexdigest(), results['empty']) |
64 |
- |
65 |
- def test_new_fox(self): |
66 |
- wp1 = whirlpool.new('The quick brown fox jumps over the lazy dog') |
67 |
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbfjotld']) |
68 |
- self.assertEqual(wp1.hexdigest(), results['tqbfjotld']) |
69 |
- |
70 |
- wp2 = whirlpool.new('The quick brown fox jumps over the lazy eog') |
71 |
- self.assertEqual(b2a_hex(wp2.digest()), results['tqbfjotle']) |
72 |
- self.assertEqual(wp2.hexdigest(), results['tqbfjotle']) |
73 |
- |
74 |
- def test_update_copy(self): |
75 |
- wp1 = whirlpool.new() |
76 |
- wp2 = wp1.copy() |
77 |
- wp1.update('The quick brown fox') |
78 |
- wp3 = wp1.copy() |
79 |
- |
80 |
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbf']) |
81 |
- self.assertEqual(wp1.hexdigest(), results['tqbf']) |
82 |
- |
83 |
- self.assertEqual(b2a_hex(wp2.digest()), results['empty']) |
84 |
- self.assertEqual(wp2.hexdigest(), results['empty']) |
85 |
- |
86 |
- self.assertEqual(b2a_hex(wp3.digest()), results['tqbf']) |
87 |
- self.assertEqual(wp3.hexdigest(), results['tqbf']) |
88 |
- |
89 |
- wp1.update(' jumps over the lazy dog') |
90 |
- |
91 |
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbfjotld']) |
92 |
- self.assertEqual(wp1.hexdigest(), results['tqbfjotld']) |
93 |
- |
94 |
- self.assertEqual(b2a_hex(wp2.digest()), results['empty']) |
95 |
- self.assertEqual(wp2.hexdigest(), results['empty']) |
96 |
- |
97 |
- self.assertEqual(b2a_hex(wp3.digest()), results['tqbf']) |
98 |
- self.assertEqual(wp3.hexdigest(), results['tqbf']) |
99 |
- |
100 |
- wp3.update(' jumps over the lazy eog') |
101 |
- |
102 |
- self.assertEqual(b2a_hex(wp1.digest()), results['tqbfjotld']) |
103 |
- self.assertEqual(wp1.hexdigest(), results['tqbfjotld']) |
104 |
- |
105 |
- self.assertEqual(b2a_hex(wp2.digest()), results['empty']) |
106 |
- self.assertEqual(wp2.hexdigest(), results['empty']) |
107 |
- |
108 |
- self.assertEqual(b2a_hex(wp3.digest()), results['tqbfjotle']) |
109 |
- self.assertEqual(wp3.hexdigest(), results['tqbfjotle']) |
110 |
- |
111 |
- def test_digest_size(self): |
112 |
- wp = whirlpool.new() |
113 |
- self.assertEqual(wp.digest_size, 64) |
114 |
- with self.assertRaisesRegexp(AttributeError, |
115 |
- 'digest_size.*not writable'): |
116 |
- wp.digest_size = 32 |
117 |
- |
118 |
- def test_block_size(self): |
119 |
- wp = whirlpool.new() |
120 |
- self.assertEqual(wp.block_size, 64) |
121 |
- with self.assertRaisesRegexp(AttributeError, |
122 |
- 'block_size.*not writable'): |
123 |
- wp.block_size = 32 |
124 |
- |
125 |
- |
126 |
-if __name__ == '__main__': |
127 |
- unittest.main() |
128 |
|
129 |
diff --git a/dev-python/whirlpool/metadata.xml b/dev-python/whirlpool/metadata.xml |
130 |
deleted file mode 100644 |
131 |
index 1e7c21380a0..00000000000 |
132 |
--- a/dev-python/whirlpool/metadata.xml |
133 |
+++ /dev/null |
134 |
@@ -1,12 +0,0 @@ |
135 |
-<?xml version="1.0" encoding="UTF-8"?> |
136 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
137 |
-<pkgmetadata> |
138 |
- <maintainer type="project"> |
139 |
- <email>python@g.o</email> |
140 |
- <name>Python</name> |
141 |
- </maintainer> |
142 |
- <upstream> |
143 |
- <remote-id type="pypi">Whirlpool</remote-id> |
144 |
- <remote-id type="github">radiosilence/python-whirlpool</remote-id> |
145 |
- </upstream> |
146 |
-</pkgmetadata> |
147 |
|
148 |
diff --git a/dev-python/whirlpool/whirlpool-0.3-r1.ebuild b/dev-python/whirlpool/whirlpool-0.3-r1.ebuild |
149 |
deleted file mode 100644 |
150 |
index 75d9969db99..00000000000 |
151 |
--- a/dev-python/whirlpool/whirlpool-0.3-r1.ebuild |
152 |
+++ /dev/null |
153 |
@@ -1,37 +0,0 @@ |
154 |
-# Copyright 1999-2014 Gentoo Foundation |
155 |
-# Distributed under the terms of the GNU General Public License v2 |
156 |
- |
157 |
-EAPI=5 |
158 |
- |
159 |
-PYTHON_COMPAT=( python2_7 ) |
160 |
- |
161 |
-inherit distutils-r1 |
162 |
- |
163 |
-MY_PN="Whirlpool" |
164 |
-MY_P="${MY_PN}-${PV}" |
165 |
- |
166 |
-DESCRIPTION="Bindings for whirlpool hash reference implementation" |
167 |
-HOMEPAGE="https://pypi.python.org/pypi/Whirlpool https://github.com/radiosilence/python-whirlpool" |
168 |
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
169 |
- |
170 |
-SLOT="0" |
171 |
-LICENSE="public-domain" |
172 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
173 |
-IUSE="test" |
174 |
- |
175 |
-RDEPEND="" |
176 |
-DEPEND="${RDEPEND} |
177 |
- dev-python/setuptools[${PYTHON_USEDEP}]" |
178 |
- |
179 |
-S="${WORKDIR}"/${MY_P} |
180 |
- |
181 |
-python_prepare_all() { |
182 |
- sed \ |
183 |
- -e "/data_files/s:whirlpool:share/whirlpool:g" \ |
184 |
- -i setup.py || die |
185 |
- distutils-r1_python_prepare_all |
186 |
-} |
187 |
- |
188 |
-python_test() { |
189 |
- ${PYTHON} "${FILESDIR}"/tests.py || die |
190 |
-} |