1{
2 lib,
3 aiosqlite,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatchling,
7 pyaes,
8 pysocks,
9 pytest-asyncio,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "hydrogram";
16 version = "0.1.4";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "hydrogram";
23 repo = "hydrogram";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-kKzXR8ared2+mHBABxtX+glJ3PMuxA1Pek3DuUkTT40=";
26 };
27
28 build-system = [ hatchling ];
29
30 dependencies = [
31 pyaes
32 pysocks
33 aiosqlite
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 pytest-asyncio
39 ];
40
41 pythonImportsCheck = [
42 "hydrogram"
43 "hydrogram.errors"
44 "hydrogram.types"
45 ];
46
47 meta = with lib; {
48 description = "Asynchronous Telegram MTProto API framework for fluid user and bot interactions";
49 homepage = "https://github.com/hydrogram/hydrogram";
50 changelog = "https://github.com/hydrogram/hydrogram/releases/tag/v${version}";
51 license = licenses.lgpl3Plus;
52 maintainers = with maintainers; [ tholo ];
53 };
54}