mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
0169b72b65
Typing has been upstreamed into CPython and will cause errors if loaded with a 3.7 interpreter. Cf. https://github.com/python/typing/issues/573 Under Python3 libolm works without typing as tested via weechat-matrix. typing is still pulled in when installed for Python2.
29 lines
593 B
Nix
29 lines
593 B
Nix
{ lib, buildPythonPackage, olm,
|
|
cffi, future, isPy3k, typing }:
|
|
|
|
buildPythonPackage {
|
|
pname = "python-olm";
|
|
inherit (olm) src version;
|
|
|
|
sourceRoot = "${olm.name}/python";
|
|
buildInputs = [ olm ];
|
|
|
|
preBuild = ''
|
|
make include/olm/olm.h
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
future
|
|
] ++ lib.optionals (!isPy3k) [ typing ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for Olm";
|
|
homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
|
|
license = olm.meta.license;
|
|
maintainers = [ maintainers.tilpner ];
|
|
};
|
|
}
|