depot/third_party/nixpkgs/pkgs/development/python-modules/pyrogram/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

48 lines
873 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pyaes
, pysocks
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "pyrogram";
version = "2.0.62";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "pyrogram";
repo = "pyrogram";
rev = "v${version}";
hash = "sha256-Kex9xIjcAYCzHeqWoDAIgTMuih0s42/O2zfTYxWEqbM=";
};
propagatedBuildInputs = [
pyaes
pysocks
];
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 ];
};
}