2019-11-15 14:19:31 +00:00
|
|
|
{ lib, buildPythonPackage, olm,
|
2020-01-13 09:35:05 +00:00
|
|
|
cffi, future, isPy3k, typing }:
|
2019-11-15 14:19:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "python-olm";
|
|
|
|
inherit (olm) src version;
|
|
|
|
|
|
|
|
sourceRoot = "${olm.name}/python";
|
|
|
|
buildInputs = [ olm ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make include/olm/olm.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
|
|
|
future
|
2020-01-13 09:35:05 +00:00
|
|
|
] ++ lib.optionals (!isPy3k) [ typing ];
|
2019-11-15 14:19:31 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|