blob: d0430d7e06a68c2eaffad77f80b88fa320e7ebe7 (
about) (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
lib,
aiosqlite,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
hatchling,
pyaes,
pysocks,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hydrogram";
version = "0.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hydrogram";
repo = "hydrogram";
tag = "v${version}";
hash = "sha256-QpweUDCypTxOOWL08gCUuMgbuE4130iNyxRpUNuSBac=";
};
patches = [
(fetchpatch2 {
name = "fix-async-in-test.patch";
excludes = [ ".github/workflows/code-style.yml" ];
url = "https://github.com/hydrogram/hydrogram/commit/7431319a1d990aa838012bd566a9746da7df2a6e.patch";
hash = "sha256-MPv13cxnNPDD+p9EPjDPFqydGy57oXzLeRxL3lG8JKU=";
})
];
build-system = [ hatchling ];
dependencies = [
pyaes
pysocks
aiosqlite
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"hydrogram"
"hydrogram.errors"
"hydrogram.types"
];
meta = with lib; {
description = "Asynchronous Telegram MTProto API framework for fluid user and bot interactions";
homepage = "https://github.com/hydrogram/hydrogram";
changelog = "https://github.com/hydrogram/hydrogram/releases/tag/${src.tag}";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ tholo ];
};
}
|