1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 setuptools,
7
8 typing-extensions,
9 xeddsa,
10 doubleratchet,
11 omemo,
12 x3dh,
13 cryptography,
14 protobuf,
15
16 xmlschema,
17}:
18
19buildPythonPackage rec {
20 pname = "oldmemo";
21 version = "2.0.0";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "Syndace";
26 repo = "python-oldmemo";
27 tag = "v${version}";
28 hash = "sha256-upgpyNoyBUg4IskF2DeQGOwm2h+hydO9lBoIHgwho28=";
29 };
30
31 build-system = [
32 setuptools
33 ];
34
35 dependencies = [
36 typing-extensions
37 xeddsa
38 doubleratchet
39 omemo
40 x3dh
41 cryptography
42 protobuf
43 ];
44
45 optional-dependencies.xml = [
46 xmlschema
47 ];
48
49 pythonImportsCheck = [
50 "oldmemo"
51 ];
52
53 meta = {
54 description = "Backend implementation of the `eu.siacs.conversations.axolotl` namespace for python-omemo";
55 homepage = "https://github.com/Syndace/python-oldmemo";
56 changelog = "https://github.com/Syndace/python-oldmemo/blob/${src.tag}/CHANGELOG.md";
57 license = lib.licenses.agpl3Plus;
58 maintainers = with lib.maintainers; [ themadbit ];
59 };
60}