8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
49 lines
857 B
Nix
49 lines
857 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, pyaes
|
|
, pysocks
|
|
, async-lru
|
|
, tgcrypto
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrogram";
|
|
version = "1.4.8";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "Pyrogram";
|
|
inherit version;
|
|
hash = "sha256-mUJEV8DLYhXNvYiuiVDCfgMmZRDCNZuydngj9C9FvQU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyaes
|
|
pysocks
|
|
async-lru
|
|
tgcrypto
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|