evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / tgcrypto / default.nix
blob2eb68c4f59d480e22a7c829d2faf3b4fc75bbf53
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "tgcrypto";
12   version = "1.2.5";
14   disabled = pythonOlder "3.6";
16   format = "pyproject";
18   src = fetchFromGitHub {
19     owner = "pyrogram";
20     repo = "tgcrypto";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   pythonImportsCheck = [ "tgcrypto" ];
31   meta = with lib; {
32     description = "Fast and Portable Telegram Crypto Library for Python";
33     homepage = "https://github.com/pyrogram/tgcrypto";
34     license = licenses.lgpl3Plus;
35     maintainers = with maintainers; [ dotlambda ];
36   };