nixpkgs/pkgs/development/python-modules/python-olm/default.nix
Alvar Penning 46c025be15 olm: 3.2.11 -> 3.2.12
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
2022-06-08 21:16:43 +02:00

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";
};
}