Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / python-olm / default.nix
blob2a8295a65bf7a945f20c4f8dce3989af8d47e328
1 { lib, buildPythonPackage, isPy3k, olm
2 , cffi, future, typing }:
4 buildPythonPackage {
5   pname = "python-olm";
6   inherit (olm) src version;
8   sourceRoot = "source/python";
9   buildInputs = [ olm ];
11   preBuild = ''
12     make include/olm/olm.h
13   '';
15   propagatedBuildInputs = [
16     cffi
17     future
18   ] ++ lib.optionals (!isPy3k) [ typing ];
20   # Some required libraries for testing are not packaged yet.
21   doCheck = false;
22   pythonImportsCheck = [ "olm" ];
24   meta = {
25     inherit (olm.meta) license maintainers;
26     description = "Python bindings for Olm";
27     homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
28   };