Skip to content

Commit 5bd3eeb

Browse files
tholooAli Mohammadzadeh
authored andcommitted
python3Packages.hydrogram: init at 0.1.4
Init hydrogram at version 0.1.4
1 parent 610e8be commit 5bd3eeb

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
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
@@ -5496,6 +5496,8 @@ self: super: with self; {
54965496

54975497
hydrawiser = callPackage ../development/python-modules/hydrawiser { };
54985498

5499+
hydrogram = callPackage ../development/python-modules/hydrogram { };
5500+
54995501
hydrus-api = callPackage ../development/python-modules/hydrus-api { };
55005502

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

0 commit comments

Comments
 (0)