depot/third_party/nixpkgs/pkgs/development/python-modules/python-olm/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
593 B
Nix

{ 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 ];
};
}