Files
nixpkgs/pkgs/development/python-modules/hydrogram/default.nix

55 lines
1.0 KiB
Nix

{
lib,
aiosqlite,
buildPythonPackage,
fetchFromGitHub,
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=";
};
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 ];
};
}