diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tgcrypto/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/tgcrypto/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tgcrypto/default.nix b/nixpkgs/pkgs/development/python-modules/tgcrypto/default.nix new file mode 100644 index 000000000000..7fd62d7bcbe3 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/tgcrypto/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "tgcrypto"; + version = "1.2.2"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "pyrogram"; + repo = "tgcrypto"; + rev = "v${version}"; + sha256 = "1vyjycjb2n790371kf47qc0mkvd4bxmhh65cfxjsrcjpiri7shjf"; + }; + + 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 ]; + }; +} |