4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
44 lines
722 B
Nix
44 lines
722 B
Nix
{ lib, buildPythonPackage, isPy3k, olm
|
|
, cffi
|
|
, future
|
|
, aspectlib
|
|
, pytest-benchmark
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "python-olm";
|
|
inherit (olm) src version;
|
|
|
|
disabled = !isPy3k;
|
|
|
|
sourceRoot = "source/python";
|
|
buildInputs = [ olm ];
|
|
|
|
preBuild = ''
|
|
make include/olm/olm.h
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
future
|
|
];
|
|
|
|
propagatedNativeBuildInputs = [
|
|
cffi
|
|
];
|
|
|
|
pythonImportsCheck = [ "olm" ];
|
|
|
|
nativeCheckInputs = [
|
|
aspectlib
|
|
pytest-benchmark
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
inherit (olm.meta) license maintainers;
|
|
description = "Python bindings for Olm";
|
|
homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
|
|
};
|
|
}
|