depot/third_party/nixpkgs/pkgs/development/python-modules/pyrogram/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

48 lines
879 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pyaes
, pysocks
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "pyrogram";
version = "2.0.99";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "pyrogram";
repo = "pyrogram";
rev = "v${version}";
hash = "sha256-QQFRDLB+gf5jzCf8imHwkSgOkAyLWJF3UDStnpq6+04=";
};
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 ];
};
}