1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pyaes 6, pysocks 7, pytestCheckHook 8, pytest-asyncio 9}: 10 11buildPythonPackage rec { 12 pname = "pyrogram"; 13 version = "2.0.62"; 14 15 disabled = pythonOlder "3.7"; 16 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "pyrogram"; 21 repo = "pyrogram"; 22 rev = "v${version}"; 23 hash = "sha256-Kex9xIjcAYCzHeqWoDAIgTMuih0s42/O2zfTYxWEqbM="; 24 }; 25 26 propagatedBuildInputs = [ 27 pyaes 28 pysocks 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}