depot/third_party/nixpkgs/pkgs/development/python-modules/python-olm/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

44 lines
731 B
Nix

{ lib, buildPythonPackage, isPy3k, olm
, cffi
, future
, aspectlib
, pytest-benchmark
, pytestCheckHook
}:
buildPythonPackage {
pname = "python-olm";
inherit (olm) src version;
disabled = !isPy3k;
sourceRoot = "${olm.src.name}/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";
};
}