Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / tgcrypto / default.nix
blob6d5ebba2ee1e3458a676599c77b7f904d9303c6a
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , setuptools
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "tgcrypto";
11   version = "1.2.5";
13   disabled = pythonOlder "3.6";
15   format = "pyproject";
17   src = fetchFromGitHub {
18     owner = "pyrogram";
19     repo = "tgcrypto";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "tgcrypto" ];
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   };