Skip to content

Commit 9885072

Browse files
authored
python3Packages.hydrogram: init at 0.1.4 (#299966)
2 parents f792ec7 + 5bd3eeb commit 9885072

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22076,6 +22076,12 @@
2207622076
githubId = 7709;
2207722077
name = "Thomaz Leite";
2207822078
};
22079+
tholo = {
22080+
email = "[email protected]";
22081+
github = "tholoo";
22082+
githubId = 42005990;
22083+
name = "Ali Mohammadzadeh";
22084+
};
2207922085
thomasdesr = {
2208022086
email = "[email protected]";
2208122087
github = "thomasdesr";
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
lib,
3+
aiosqlite,
4+
buildPythonPackage,
5+
fetchFromGitHub,
6+
hatchling,
7+
pyaes,
8+
pysocks,
9+
pytest-asyncio,
10+
pytestCheckHook,
11+
pythonOlder,
12+
}:
13+
14+
buildPythonPackage 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+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6019,6 +6019,8 @@ self: super: with self; {
60196019

60206020
hydrawiser = callPackage ../development/python-modules/hydrawiser { };
60216021

6022+
hydrogram = callPackage ../development/python-modules/hydrogram { };
6023+
60226024
hydrus-api = callPackage ../development/python-modules/hydrus-api { };
60236025

60246026
hypchat = callPackage ../development/python-modules/hypchat { };

0 commit comments

Comments
 (0)