https://gitlab.matrix.org/matrix-org/olm/-/releases/3.2.12
This version bump introduces Python code which is no longer compatible
with Python 2 in [0]. Thus, python-olm was limited to Python 3.
[0] 86a3d95855
37 lines
687 B
Nix
37 lines
687 B
Nix
{ lib, buildPythonPackage, isPy3k, olm
|
|
, cffi, future, typing }:
|
|
|
|
buildPythonPackage {
|
|
pname = "python-olm";
|
|
inherit (olm) src version;
|
|
|
|
disabled = !isPy3k;
|
|
|
|
sourceRoot = "source/python";
|
|
buildInputs = [ olm ];
|
|
|
|
preBuild = ''
|
|
make include/olm/olm.h
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
future
|
|
typing
|
|
];
|
|
|
|
propagatedNativeBuildInputs = [
|
|
cffi
|
|
];
|
|
|
|
# Some required libraries for testing are not packaged yet.
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "olm" ];
|
|
|
|
meta = {
|
|
inherit (olm.meta) license maintainers;
|
|
description = "Python bindings for Olm";
|
|
homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
|
|
};
|
|
}
|