1{ lib, buildPythonPackage, olm,
2 cffi, future, isPy3k, typing }:
3
4buildPythonPackage {
5 pname = "python-olm";
6 inherit (olm) src version;
7
8 sourceRoot = "${olm.name}/python";
9 buildInputs = [ olm ];
10
11 preBuild = ''
12 make include/olm/olm.h
13 '';
14
15 propagatedBuildInputs = [
16 cffi
17 future
18 ] ++ lib.optionals (!isPy3k) [ typing ];
19
20 doCheck = false;
21
22 meta = with lib; {
23 description = "Python bindings for Olm";
24 homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
25 license = olm.meta.license;
26 maintainers = [ maintainers.tilpner ];
27 };
28}