From 610e8be8387cfd96e5016c258f5a6748e7ab2ef0 Mon Sep 17 00:00:00 2001 From: Ali M Date: Fri, 29 Mar 2024 13:26:12 +0330 Subject: [PATCH 1/2] maintainers: add tholo --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b328568e5b6a..9286d6653cd2 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -19690,6 +19690,12 @@ githubId = 7709; name = "Thomaz Leite"; }; + tholo = { + email = "ali0mhmz@gmail.com"; + github = "tholoo"; + githubId = 42005990; + name = "Ali Mohammadzadeh"; + }; thomasdesr = { email = "git@hive.pw"; github = "thomasdesr"; From 5bd3eeba769d782905a28df3b5e6ef625d0c6e71 Mon Sep 17 00:00:00 2001 From: Ali M Date: Fri, 29 Mar 2024 14:16:52 +0330 Subject: [PATCH 2/2] python3Packages.hydrogram: init at 0.1.4 Init hydrogram at version 0.1.4 --- .../python-modules/hydrogram/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/hydrogram/default.nix diff --git a/pkgs/development/python-modules/hydrogram/default.nix b/pkgs/development/python-modules/hydrogram/default.nix new file mode 100644 index 000000000000..86ba002ab61c --- /dev/null +++ b/pkgs/development/python-modules/hydrogram/default.nix @@ -0,0 +1,54 @@ +{ + lib, + aiosqlite, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pyaes, + pysocks, + pytest-asyncio, + pytestCheckHook, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "hydrogram"; + version = "0.1.4"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "hydrogram"; + repo = "hydrogram"; + rev = "refs/tags/v${version}"; + hash = "sha256-kKzXR8ared2+mHBABxtX+glJ3PMuxA1Pek3DuUkTT40="; + }; + + 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/v${version}"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ tholo ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b030a14a79b4..69e66f689a88 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5496,6 +5496,8 @@ self: super: with self; { hydrawiser = callPackage ../development/python-modules/hydrawiser { }; + hydrogram = callPackage ../development/python-modules/hydrogram { }; + hydrus-api = callPackage ../development/python-modules/hydrus-api { }; hypchat = callPackage ../development/python-modules/hypchat { };