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