evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pyrogram / default.nix
blobb7961fa3e690f81aed7f8dc6524af7a27ed88f03
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   pyaes,
7   pysocks,
8   pytestCheckHook,
9   pytest-asyncio,
12 buildPythonPackage rec {
13   pname = "pyrogram";
14   version = "2.0.106";
16   disabled = pythonOlder "3.7";
18   format = "setuptools";
20   src = fetchFromGitHub {
21     owner = "pyrogram";
22     repo = "pyrogram";
23     rev = "v${version}";
24     hash = "sha256-W/t3v5q0s+ba0Uly+JUaJl75uDQGeFaj2zDKGRMIMow=";
25   };
27   propagatedBuildInputs = [
28     pyaes
29     pysocks
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34     pytest-asyncio
35   ];
37   pythonImportsCheck = [
38     "pyrogram"
39     "pyrogram.errors"
40     "pyrogram.types"
41   ];
43   meta = with lib; {
44     description = "Telegram MTProto API Client Library and Framework for Python";
45     homepage = "https://github.com/pyrogram/pyrogram";
46     license = licenses.lgpl3Plus;
47     maintainers = with maintainers; [ dotlambda ];
48   };