nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 710 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "tgcrypto"; 11 version = "1.2.5"; 12 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "pyrogram"; 17 repo = "tgcrypto"; 18 tag = "v${version}"; 19 hash = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "tgcrypto" ]; 27 28 meta = { 29 description = "Fast and Portable Telegram Crypto Library for Python"; 30 homepage = "https://github.com/pyrogram/tgcrypto"; 31 license = lib.licenses.lgpl3Plus; 32 maintainers = with lib.maintainers; [ dotlambda ]; 33 }; 34}