1{ lib, buildPythonPackage, isPy3k, olm 2, cffi, future, typing }: 3 4buildPythonPackage { 5 pname = "python-olm"; 6 inherit (olm) src version; 7 8 sourceRoot = "source/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 propagatedNativeBuildInputs = [ 21 cffi 22 ]; 23 24 # Some required libraries for testing are not packaged yet. 25 doCheck = false; 26 pythonImportsCheck = [ "olm" ]; 27 28 meta = { 29 inherit (olm.meta) license maintainers; 30 description = "Python bindings for Olm"; 31 homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python"; 32 }; 33}