My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/tgcrypto/default.nix

33 lines
682 B

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tgcrypto";
version = "1.2.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pyrogram";
repo = "tgcrypto";
rev = "v${version}";
sha256 = "06g1kv3skq2948h0sjf64s1cr2p1rhxnx5pf9nmvhxkmri1xmfzs";
};
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 ];
};
}