2021-02-24 18:30:23 +00:00
|
|
|
{ lib, buildPythonPackage, isPy3k, olm
|
2023-03-04 12:14:45 +00:00
|
|
|
, cffi
|
|
|
|
, future
|
|
|
|
, aspectlib
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "python-olm";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (olm) src version;
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${olm.src.name}/python";
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ olm ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make include/olm/olm.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
|
|
|
future
|
2022-06-26 10:26:21 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedNativeBuildInputs = [
|
|
|
|
cffi
|
|
|
|
];
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
pythonImportsCheck = [ "olm" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
aspectlib
|
|
|
|
pytest-benchmark
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
meta = {
|
|
|
|
inherit (olm.meta) license maintainers;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python bindings for Olm";
|
|
|
|
homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
|
|
|
|
};
|
|
|
|
}
|