about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-olm/default.nix
blob: b1e01f7f4abfad305949a479981063d3a0322d28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildPythonPackage, olm,
  cffi, future, isPy3k, typing }:

buildPythonPackage {
  pname = "python-olm";
  inherit (olm) src version;

  sourceRoot = "${olm.name}/python";
  buildInputs = [ olm ];

  preBuild = ''
    make include/olm/olm.h
  '';

  propagatedBuildInputs = [
    cffi
    future
  ] ++ lib.optionals (!isPy3k) [ typing ];

  doCheck = false;

  meta = with lib; {
    description = "Python bindings for Olm";
    homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
    license = olm.meta.license;
    maintainers = [ maintainers.tilpner ];
  };
}