1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 pyaes, 7 pysocks, 8 pytestCheckHook, 9 pytest-asyncio, 10}: 11 12buildPythonPackage rec { 13 pname = "pyrogram"; 14 version = "2.0.106"; 15 16 disabled = pythonOlder "3.7"; 17 18 format = "setuptools"; 19 20 src = fetchFromGitHub { 21 owner = "pyrogram"; 22 repo = "pyrogram"; 23 rev = "v${version}"; 24 hash = "sha256-W/t3v5q0s+ba0Uly+JUaJl75uDQGeFaj2zDKGRMIMow="; 25 }; 26 27 propagatedBuildInputs = [ 28 pyaes 29 pysocks 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pytest-asyncio 35 ]; 36 37 pythonImportsCheck = [ 38 "pyrogram" 39 "pyrogram.errors" 40 "pyrogram.types" 41 ]; 42 43 meta = with lib; { 44 description = "Telegram MTProto API Client Library and Framework for Python"; 45 homepage = "https://github.com/pyrogram/pyrogram"; 46 license = licenses.lgpl3Plus; 47 maintainers = with maintainers; [ dotlambda ]; 48 }; 49}