Merge pull request #97349 from udf/master

python38Packages.telethon: Patch find_library call for libssl
This commit is contained in:
Doron Behar 2020-12-16 21:23:11 +02:00 committed by GitHub
commit 644a7468b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, async_generator, rsa, pyaes, pythonOlder }: { lib, buildPythonPackage, fetchPypi, openssl, async_generator, rsa, pyaes, pythonOlder }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "telethon"; pname = "telethon";
@ -10,6 +10,11 @@ buildPythonPackage rec {
sha256 = "1v1rgr030z8s1ldv5lm1811znyd568c22pmlrzzf3ls972xk514m"; sha256 = "1v1rgr030z8s1ldv5lm1811znyd568c22pmlrzzf3ls972xk514m";
}; };
patchPhase = ''
substituteInPlace telethon/crypto/libssl.py --replace \
"ctypes.util.find_library('ssl')" "'${openssl.out}/lib/libssl.so'"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
rsa rsa
pyaes pyaes

@ -7202,7 +7202,9 @@ in {
telegram = callPackage ../development/python-modules/telegram { }; telegram = callPackage ../development/python-modules/telegram { };
telethon = callPackage ../development/python-modules/telethon { }; telethon = callPackage ../development/python-modules/telethon {
inherit (pkgs) openssl;
};
telethon-session-sqlalchemy = callPackage ../development/python-modules/telethon-session-sqlalchemy { }; telethon-session-sqlalchemy = callPackage ../development/python-modules/telethon-session-sqlalchemy { };