From 5647015589d95d2d3b3f07b4891a83ac8a5c06de Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sat, 21 Mar 2026 13:07:37 +0100 Subject: [PATCH 1/2] python3Packages.tgcrypto: drop tgcrypto was archived upstream in December 2024 [1]. [1] https://github.com/pyrogram/tgcrypto --- .../python-modules/tgcrypto/default.nix | 34 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 pkgs/development/python-modules/tgcrypto/default.nix diff --git a/pkgs/development/python-modules/tgcrypto/default.nix b/pkgs/development/python-modules/tgcrypto/default.nix deleted file mode 100644 index e1ae2e03cec3..000000000000 --- a/pkgs/development/python-modules/tgcrypto/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - setuptools, - pytestCheckHook, -}: - -buildPythonPackage rec { - pname = "tgcrypto"; - version = "1.2.5"; - - pyproject = true; - - src = fetchFromGitHub { - owner = "pyrogram"; - repo = "tgcrypto"; - tag = "v${version}"; - hash = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg="; - }; - - nativeBuildInputs = [ setuptools ]; - - nativeCheckInputs = [ pytestCheckHook ]; - - pythonImportsCheck = [ "tgcrypto" ]; - - meta = { - description = "Fast and Portable Telegram Crypto Library for Python"; - homepage = "https://github.com/pyrogram/tgcrypto"; - license = lib.licenses.lgpl3Plus; - maintainers = with lib.maintainers; [ dotlambda ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index b740bfcb3cf5..84e1ccfe58b2 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -548,6 +548,7 @@ mapAliases { tensorflow-tensorboard = throw "'tensorflow-tensorboard' has been renamed to/replaced by 'tensorboard'"; # Converted to throw 2025-10-29 tensorflow-tensorboard_2 = throw "'tensorflow-tensorboard_2' has been renamed to/replaced by 'tensorflow-tensorboard'"; # Converted to throw 2025-10-29 testing-postgresql = throw "testing-postgresql has been removed, since it is unmaintained since 2017"; # added 2025-05-25 + tgcrypto = throw "'tgcrypto' has been removed as it was archived upstream"; # Added 2026-03-21 Theano = throw "'Theano' has been renamed to/replaced by 'theano'"; # Converted to throw 2025-10-29 TheanoWithCuda = throw "'TheanoWithCuda' has been renamed to/replaced by 'theanoWithCuda'"; # Converted to throw 2025-10-29 TheanoWithoutCuda = throw "'TheanoWithoutCuda' has been renamed to/replaced by 'theanoWithoutCuda'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d63ceadbc1cb..654eea281109 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19211,8 +19211,6 @@ self: super: with self; { tftpy = callPackage ../development/python-modules/tftpy { }; - tgcrypto = callPackage ../development/python-modules/tgcrypto { }; - thefuzz = callPackage ../development/python-modules/thefuzz { }; thelogrus = callPackage ../development/python-modules/thelogrus { }; From 781b4e42fa6bba8ee423819ab70cddafdbbe7e7f Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sat, 21 Mar 2026 13:09:10 +0100 Subject: [PATCH 2/2] python3Packages.pyrogram: drop pyrogram was archived upstream in December 2024 [1]. [1] https://github.com/pyrogram/pyrogram --- .../python-modules/pyrogram/default.nix | 46 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 pkgs/development/python-modules/pyrogram/default.nix diff --git a/pkgs/development/python-modules/pyrogram/default.nix b/pkgs/development/python-modules/pyrogram/default.nix deleted file mode 100644 index d0175881af3d..000000000000 --- a/pkgs/development/python-modules/pyrogram/default.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - pyaes, - pysocks, - pytestCheckHook, - pytest-asyncio, -}: - -buildPythonPackage rec { - pname = "pyrogram"; - version = "2.0.106"; - - format = "setuptools"; - - src = fetchFromGitHub { - owner = "pyrogram"; - repo = "pyrogram"; - rev = "v${version}"; - hash = "sha256-W/t3v5q0s+ba0Uly+JUaJl75uDQGeFaj2zDKGRMIMow="; - }; - - propagatedBuildInputs = [ - pyaes - pysocks - ]; - - nativeCheckInputs = [ - pytestCheckHook - pytest-asyncio - ]; - - pythonImportsCheck = [ - "pyrogram" - "pyrogram.errors" - "pyrogram.types" - ]; - - meta = { - description = "Telegram MTProto API Client Library and Framework for Python"; - homepage = "https://github.com/pyrogram/pyrogram"; - license = lib.licenses.lgpl3Plus; - maintainers = with lib.maintainers; [ dotlambda ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 84e1ccfe58b2..c95ffb861ac1 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -415,6 +415,7 @@ mapAliases { pyRFC3339 = throw "'pyRFC3339' has been renamed to/replaced by 'pyrfc3339'"; # Converted to throw 2025-10-29 Pyro4 = throw "'Pyro4' has been renamed to/replaced by 'pyro4'"; # Converted to throw 2025-10-29 Pyro5 = throw "'Pyro5' has been renamed to/replaced by 'pyro5'"; # Converted to throw 2025-10-29 + pyrogram = throw "'pyrogram' has been removed as it was archived upstream"; # Added 2026-03-21 pyrr = throw "pyrr has been removed because it is incompatible with NumPy 2.0+"; # Added 2026-02-18 PyRSS2Gen = throw "'PyRSS2Gen' has been renamed to/replaced by 'pyrss2gen'"; # Converted to throw 2025-10-29 pyside6-fluent-widgets = throw "pyside6-fluent-widgets has been removed, since it is unmaintained"; # added 2025-08-20 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 654eea281109..16114091f051 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14813,8 +14813,6 @@ self: super: with self; { pyroaring = callPackage ../development/python-modules/pyroaring { }; - pyrogram = callPackage ../development/python-modules/pyrogram { }; - pyroma = callPackage ../development/python-modules/pyroma { }; pyroute2 = callPackage ../development/python-modules/pyroute2 { };