Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 825 B view raw
1{ lib, buildPythonPackage, fetchPypi, openssl, async_generator, rsa, pyaes, pythonOlder }: 2 3buildPythonPackage rec { 4 pname = "telethon"; 5 version = "1.17.5"; 6 7 src = fetchPypi { 8 inherit version; 9 pname = "Telethon"; 10 sha256 = "1v1rgr030z8s1ldv5lm1811znyd568c22pmlrzzf3ls972xk514m"; 11 }; 12 13 patchPhase = '' 14 substituteInPlace telethon/crypto/libssl.py --replace \ 15 "ctypes.util.find_library('ssl')" "'${openssl.out}/lib/libssl.so'" 16 ''; 17 18 propagatedBuildInputs = [ 19 rsa 20 pyaes 21 ]; 22 23 # No tests available 24 doCheck = false; 25 26 disabled = pythonOlder "3.5"; 27 28 meta = with lib; { 29 homepage = "https://github.com/LonamiWebs/Telethon"; 30 description = "Full-featured Telegram client library for Python 3"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ nyanloutre ]; 33 }; 34}