2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2022-01-13 20:06:32 +00:00
|
|
|
, fetchPypi
|
2021-06-28 23:13:55 +00:00
|
|
|
, pyaes
|
|
|
|
, pysocks
|
|
|
|
, async-lru
|
2022-01-19 23:45:15 +00:00
|
|
|
, tgcrypto
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyrogram";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "1.3.5";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Pyrogram";
|
|
|
|
inherit version;
|
2022-01-19 23:45:15 +00:00
|
|
|
hash = "sha256-51/to8ZCyK6cYWQCGWcQ07rGDR29awfxcUNnSF5vIKE=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyaes
|
|
|
|
pysocks
|
|
|
|
async-lru
|
2022-01-19 23:45:15 +00:00
|
|
|
tgcrypto
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyrogram"
|
|
|
|
"pyrogram.errors"
|
|
|
|
"pyrogram.types"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Telegram MTProto API Client Library and Framework for Python";
|
|
|
|
homepage = "https://github.com/pyrogram/pyrogram";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|