889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
36 lines
687 B
Nix
36 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";
|
|
};
|
|
}
|