summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tgcrypto/default.nix
blob: e1ae2e03cec3738c2c02cfaf9034c3ba0bbb73b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "tgcrypto";
  version = "1.2.5";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "pyrogram";
    repo = "tgcrypto";
    tag = "v${version}";
    hash = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "tgcrypto" ];

  meta = {
    description = "Fast and Portable Telegram Crypto Library for Python";
    homepage = "https://github.com/pyrogram/tgcrypto";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}