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