22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
50 lines
897 B
Nix
50 lines
897 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pyaes
|
|
, pysocks
|
|
, async-lru
|
|
, tgcrypto
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrogram";
|
|
version = "2.0.16";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyrogram";
|
|
repo = "pyrogram";
|
|
rev = "v${version}";
|
|
hash = "sha256-uRGLk8XTHimKtkVjPPe2ohTPv3UiaxmkRywQY4iPHyg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyaes
|
|
pysocks
|
|
async-lru
|
|
tgcrypto
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|