My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/python-olm/default.nix

33 lines
691 B

{ lib, buildPythonPackage, isPy3k, olm
, cffi, future, typing }:
buildPythonPackage {
pname = "python-olm";
inherit (olm) src version;
sourceRoot = "source/python";
buildInputs = [ olm ];
preBuild = ''
make include/olm/olm.h
'';
propagatedBuildInputs = [
cffi
future
] ++ lib.optionals (!isPy3k) [ 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";
};
}