From 092dad1b2a238e6dfd86bffc54bc3a0e1e2b81ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 25 Apr 2022 21:20:08 +0000 Subject: [PATCH] python3Packages.pyrogram: 1.4.16 -> 2.0.13 https://docs.pyrogram.org/releases/v2.0 --- .../python-modules/pyrogram/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyrogram/default.nix b/pkgs/development/python-modules/pyrogram/default.nix index d4d49fd26268..c8f7dccc4f0f 100644 --- a/pkgs/development/python-modules/pyrogram/default.nix +++ b/pkgs/development/python-modules/pyrogram/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , pythonOlder -, fetchPypi +, fetchFromGitHub , pyaes , pysocks , async-lru @@ -12,14 +12,15 @@ buildPythonPackage rec { pname = "pyrogram"; - version = "1.4.16"; + version = "2.0.13"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; - src = fetchPypi { - pname = "Pyrogram"; - inherit version; - hash = "sha256-ZYAPaAa92z3KtciVHOexdZf9bwZjKQ9WKg6+We0dW+Q="; + src = fetchFromGitHub { + owner = "pyrogram"; + repo = "pyrogram"; + rev = "v${version}"; + hash = "sha256-8mnGfW8/2RbU4gFS8e72KAxMGGkb8XrhsyK01wD97rI="; }; propagatedBuildInputs = [