1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, setuptools
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "tgcrypto";
11 version = "1.2.5";
12
13 disabled = pythonOlder "3.6";
14
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "pyrogram";
19 repo = "tgcrypto";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "tgcrypto" ];
33
34 meta = with lib; {
35 description = "Fast and Portable Telegram Crypto Library for Python";
36 homepage = "https://github.com/pyrogram/tgcrypto";
37 license = licenses.lgpl3Plus;
38 maintainers = with maintainers; [ dotlambda ];
39 };
40}