depot/third_party/nixpkgs/pkgs/development/python-modules/tgcrypto/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

40 lines
774 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tgcrypto";
version = "1.2.5";
disabled = pythonOlder "3.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "pyrogram";
repo = "tgcrypto";
rev = "refs/tags/v${version}";
sha256 = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg=";
};
nativeBuildInputs = [
setuptools
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "tgcrypto" ];
meta = with lib; {
description = "Fast and Portable Telegram Crypto Library for Python";
homepage = "https://github.com/pyrogram/tgcrypto";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}