Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyrogram / default.nix
blobc947cbaaa4eb628b873a06fb0abc1b997b19fd62
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , pyaes
6 , pysocks
7 , pytestCheckHook
8 , pytest-asyncio
9 }:
11 buildPythonPackage rec {
12   pname = "pyrogram";
13   version = "2.0.106";
15   disabled = pythonOlder "3.7";
17   format = "setuptools";
19   src = fetchFromGitHub {
20     owner = "pyrogram";
21     repo = "pyrogram";
22     rev = "v${version}";
23     hash = "sha256-W/t3v5q0s+ba0Uly+JUaJl75uDQGeFaj2zDKGRMIMow=";
24   };
26   propagatedBuildInputs = [
27     pyaes
28     pysocks
29   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33     pytest-asyncio
34   ];
36   pythonImportsCheck = [
37     "pyrogram"
38     "pyrogram.errors"
39     "pyrogram.types"
40   ];
42   meta = with lib; {
43     description = "Telegram MTProto API Client Library and Framework for Python";
44     homepage = "https://github.com/pyrogram/pyrogram";
45     license = licenses.lgpl3Plus;
46     maintainers = with maintainers; [ dotlambda ];
47   };