python3Packages.python-olm: remove dependency on the typing package

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.
This commit is contained in:
Philipp Gesang 2020-01-13 10:35:05 +01:00
parent 9ed03f2103
commit 0169b72b65
No known key found for this signature in database
GPG Key ID: F12D9BAC178A094C

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, olm,
cffi, future, typing }:
cffi, future, isPy3k, typing }:
buildPythonPackage {
pname = "python-olm";
@ -15,8 +15,7 @@ buildPythonPackage {
propagatedBuildInputs = [
cffi
future
typing
];
] ++ lib.optionals (!isPy3k) [ typing ];
doCheck = false;