From beeffb7b9f36c06ec3c599c72b23732961fc5e99 Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Mon, 9 Dec 2024 17:31:27 +0000 Subject: [PATCH] python3Packages.opentracing: drop Unmaintained since 2023: https://github.com/opentracing/opentracing-python OpenTracing is deprecated in favor of OpenTelemetry: https://github.com/NixOS/nixpkgs/issues/261927 --- .../manual/release-notes/rl-2505.section.md | 2 + .../python-modules/opentracing/default.nix | 45 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 4 files changed, 3 insertions(+), 47 deletions(-) delete mode 100644 pkgs/development/python-modules/opentracing/default.nix diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index f173d0d93b1d3..834658df0b2a5 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -93,6 +93,8 @@ - `nodePackages.stackdriver-statsd-backend` has been removed, as the StackDriver service has been discontinued by Google, and therefore the package no longer works. +- `python3Packages.opentracing` has been removed due to being unmaintained upstream. [OpenTelemetry](https://opentelemetry.io/) is the recommended replacement. + - the notmuch vim plugin now lives in a separate output of the `notmuch` package. Installing `notmuch` will not bring the notmuch vim package anymore, add `vimPlugins.notmuch-vim` to your (Neo)vim configuration if you want the diff --git a/pkgs/development/python-modules/opentracing/default.nix b/pkgs/development/python-modules/opentracing/default.nix deleted file mode 100644 index c0f61bb107431..0000000000000 --- a/pkgs/development/python-modules/opentracing/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - pythonAtLeast, - isPy27, - futures ? null, - gevent, - mock, - pytestCheckHook, - tornado, - six, -}: - -buildPythonPackage rec { - pname = "opentracing"; - version = "2.4.0"; - format = "setuptools"; - - # incompatible with asyncio changes in 3.11 and deprecated - # https://github.com/opentracing/specification/issues/163 - disabled = pythonAtLeast "3.11"; - - src = fetchPypi { - inherit pname version; - sha256 = "a173117e6ef580d55874734d1fa7ecb6f3655160b8b8974a2a1e98e5ec9c840d"; - }; - - propagatedBuildInputs = lib.optional isPy27 futures; - - nativeCheckInputs = [ - gevent - mock - pytestCheckHook - six - tornado - ]; - - meta = with lib; { - homepage = "https://github.com/opentracing/opentracing-python"; - description = "Platform API for OpenTracing"; - license = licenses.asl20; - maintainers = with maintainers; [ rakesh4g ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 7c18c3d69dd2c..dedd77963698f 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -398,6 +398,7 @@ mapAliases ({ openllm-client = throw "openllm-client has been removed, since it is abandoned due to a change in philosophy"; # added 2024-08-24 openllm-core = throw "openllm-core has been removed, since it is abandoned due to a change in philosophy"; # added 2024-08-24 opsdroid_get_image_size = opsdroid-get-image-size; # added 2023-10-16 + opentracing = throw "The opentracing Python module was removed due to being unmaintained upstream. Use OpenTelemetry instead."; ordereddict = throw "ordereddict has been removed because it is only useful on unsupported python versions."; # added 2022-05-28 pafy = throw "pafy has been removed because it is unmaintained and only a dependency of mps-youtube, itself superseded by yewtube"; # Added 2023-01-19 pam = python-pam; # added 2020-09-07. diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fecbbeecaa84e..a545c8fc55304 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9675,8 +9675,6 @@ self: super: with self; { enablePython = true; }); - opentracing = callPackage ../development/python-modules/opentracing { }; - opentsne = callPackage ../development/python-modules/opentsne { }; opentypespec = callPackage ../development/python-modules/opentypespec { };