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.
wip/yesman
Philipp Gesang 5 years ago
parent 9ed03f2103
commit 0169b72b65
No known key found for this signature in database
GPG Key ID: F12D9BAC178A094C
  1. 5
      pkgs/development/python-modules/python-olm/default.nix

@ -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;

Loading…
Cancel
Save