Merge pull request #97349 from udf/master
python38Packages.telethon: Patch find_library call for libssl
This commit is contained in:
commit
644a7468b4
@ -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 { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user