depot/third_party/nixpkgs/pkgs/development/python-modules/python-olm/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

45 lines
756 B
Nix

{ lib, buildPythonPackage, isPy3k, olm
, cffi
, future
, aspectlib
, pytest-benchmark
, pytestCheckHook
}:
buildPythonPackage {
pname = "python-olm";
format = "setuptools";
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";
};
}