Skip to content

Commit 12377fc

Browse files
authored
Merge pull request #1566 from goffi-contrib/omemo_recipe_update
[OMEMO] updated omemo recipe
2 parents 03671e9 + ae4e586 commit 12377fc

File tree

4 files changed

+28
-24
lines changed

4 files changed

+28
-24
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from pythonforandroid.recipe import PythonRecipe
2+
3+
4+
class OmemoBackendSignalRecipe(PythonRecipe):
5+
name = 'omemo-backend-signal'
6+
version = '0.2.2'
7+
url = 'https://pypi.python.org/packages/source/o/omemo-backend-signal/omemo-backend-signal-{version}.tar.gz'
8+
site_packages_name = 'omemo-backend-signal'
9+
depends = [
10+
('python2', 'python3crystax'),
11+
'setuptools',
12+
'protobuf_cpp',
13+
'x3dh',
14+
'DoubleRatchet',
15+
'hkdf==0.0.3',
16+
'cryptography',
17+
'omemo',
18+
]
19+
patches = ['wireformat.patch']
20+
call_hostpython_via_targetpython = False
21+
22+
23+
recipe = OmemoBackendSignalRecipe()

pythonforandroid/recipes/omemo/wireformat.patch renamed to pythonforandroid/recipes/omemo-backend-signal/wireformat.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
diff -urN OMEMO-0.7.1.ori/omemo/signal/wireformat/whispertextprotocol_pb2.py OMEMO-0.7.1/omemo/signal/wireformat/whispertextprotocol_pb2.py
2-
--- OMEMO-0.7.1.ori/omemo/signal/wireformat/whispertextprotocol_pb2.py 2018-09-02 21:04:26.000000000 +0200
3-
+++ OMEMO-0.7.1/omemo/signal/wireformat/whispertextprotocol_pb2.py 2018-11-02 10:39:15.196715321 +0100
1+
diff -urN omemo-backend-signal-0.2.2.ori/omemo_backend_signal/whispertextprotocol_pb2.py omemo-backend-signal-0.2.2/omemo_backend_signal/whispertextprotocol_pb2.py
2+
--- omemo-backend-signal-0.2.2.ori/omemo_backend_signal/whispertextprotocol_pb2.py 2018-09-02 21:04:26.000000000 +0200
3+
+++ omemo-backend-signal-0.2.2/omemo_backend_signal/whispertextprotocol_pb2.py 2018-11-02 10:39:15.196715321 +0100
44
@@ -21,7 +21,6 @@
55
syntax='proto2',
66
serialized_pb=_b('\n\x19WhisperTextProtocol.proto\"R\n\rSignalMessage\x12\x16\n\x0e\x64h_ratchet_key\x18\x01 \x01(\x0c\x12\t\n\x01n\x18\x02 \x01(\r\x12\n\n\x02pn\x18\x03 \x01(\r\x12\x12\n\nciphertext\x18\x04 \x01(\x0c\"\x7f\n\x13PreKeySignalMessage\x12\x17\n\x0fregistration_id\x18\x05 \x01(\r\x12\x0f\n\x07otpk_id\x18\x01 \x01(\r\x12\x0e\n\x06spk_id\x18\x06 \x01(\r\x12\n\n\x02\x65k\x18\x02 \x01(\x0c\x12\n\n\x02ik\x18\x03 \x01(\x0c\x12\x16\n\x0esignal_message\x18\x04 \x01(\x0c')

pythonforandroid/recipes/omemo/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33

44
class OmemoRecipe(PythonRecipe):
55
name = 'omemo'
6-
version = '0.7.1'
6+
version = '0.10.3'
77
url = 'https://pypi.python.org/packages/source/O/OMEMO/OMEMO-{version}.tar.gz'
88
site_packages_name = 'omemo'
99
depends = [
1010
('python2', 'python3crystax'),
1111
'setuptools',
12-
'protobuf_cpp',
1312
'x3dh',
14-
'DoubleRatchet',
15-
'hkdf==0.0.3',
13+
'cryptography',
1614
]
17-
patches = ['remove_dependencies.patch', 'wireformat.patch']
1815
call_hostpython_via_targetpython = False
1916

2017

pythonforandroid/recipes/omemo/remove_dependencies.patch

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)