4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
48 lines
880 B
Nix
48 lines
880 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pyaes
|
|
, pysocks
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrogram";
|
|
version = "2.0.100";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyrogram";
|
|
repo = "pyrogram";
|
|
rev = "v${version}";
|
|
hash = "sha256-WlKzBhToSrBl6T8XFlqi3p0ABDufBGdhmK/0Fn7V61A=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyaes
|
|
pysocks
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyrogram"
|
|
"pyrogram.errors"
|
|
"pyrogram.types"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Telegram MTProto API Client Library and Framework for Python";
|
|
homepage = "https://github.com/pyrogram/pyrogram";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|