1{ lib, buildPythonPackage, isPy3k, olm 2, cffi 3, future 4, aspectlib 5, pytest-benchmark 6, pytestCheckHook 7}: 8 9buildPythonPackage { 10 pname = "python-olm"; 11 inherit (olm) src version; 12 13 disabled = !isPy3k; 14 15 sourceRoot = "${olm.src.name}/python"; 16 buildInputs = [ olm ]; 17 18 preBuild = '' 19 make include/olm/olm.h 20 ''; 21 22 propagatedBuildInputs = [ 23 cffi 24 future 25 ]; 26 27 propagatedNativeBuildInputs = [ 28 cffi 29 ]; 30 31 pythonImportsCheck = [ "olm" ]; 32 33 nativeCheckInputs = [ 34 aspectlib 35 pytest-benchmark 36 pytestCheckHook 37 ]; 38 39 meta = { 40 inherit (olm.meta) license maintainers; 41 description = "Python bindings for Olm"; 42 homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python"; 43 }; 44}