1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 cryptography,
7 gmpy2,
8 python3-application,
9}:
10
11buildPythonPackage rec {
12 pname = "otr";
13 version = "2.1.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "AGProjects";
18 repo = "python3-otr";
19 tag = version;
20 hash = "sha256-jCyPEdWDEW1x0Id//yM67SvKvYpdyIfPmcCWiRgwvb0=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 cryptography
27 gmpy2
28 python3-application
29 ];
30
31 checkPhase = ''
32 runHook preCheck
33
34 python3 test.py
35
36 runHook postCheck
37 '';
38
39 pythonImportsCheck = [ "otr" ];
40
41 meta = {
42 description = "Off-The-Record Messaging protocol implementation for Python";
43 homepage = "https://github.com/AGProjects/python3-otr";
44 license = lib.licenses.lgpl21Plus;
45 teams = [
46 lib.teams.ngi
47 ];
48 };
49}