1{ lib, buildPythonPackage, isPy3k, olm
2, cffi, future, typing }:
3
4buildPythonPackage {
5 pname = "python-olm";
6 inherit (olm) src version;
7
8 disabled = !isPy3k;
9
10 sourceRoot = "source/python";
11 buildInputs = [ olm ];
12
13 preBuild = ''
14 make include/olm/olm.h
15 '';
16
17 propagatedBuildInputs = [
18 cffi
19 future
20 typing
21 ];
22
23 propagatedNativeBuildInputs = [
24 cffi
25 ];
26
27 # Some required libraries for testing are not packaged yet.
28 doCheck = false;
29 pythonImportsCheck = [ "olm" ];
30
31 meta = {
32 inherit (olm.meta) license maintainers;
33 description = "Python bindings for Olm";
34 homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
35 };
36}