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