From 5708c68c25842413066e679dd1aad34569b46315 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 11 Oct 2025 15:15:50 -0400 Subject: [PATCH 1/3] python3Packages.elegy: drop Has been marked broken for at least a full release cycle. Dropping per RFC 180. --- .../python-modules/elegy/default.nix | 100 ------------------ pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 102 deletions(-) delete mode 100644 pkgs/development/python-modules/elegy/default.nix diff --git a/pkgs/development/python-modules/elegy/default.nix b/pkgs/development/python-modules/elegy/default.nix deleted file mode 100644 index 08e93d47802d..000000000000 --- a/pkgs/development/python-modules/elegy/default.nix +++ /dev/null @@ -1,100 +0,0 @@ -{ - lib, - buildPythonPackage, - cloudpickle, - deepdish, - deepmerge, - dm-haiku, - fetchFromGitHub, - fetchpatch, - jaxlib, - poetry-core, - pytestCheckHook, - pythonOlder, - pyyaml, - sh, - tables, - tabulate, - tensorboardx, - tensorflow, - toolz, - torch, - treex, - typing-extensions, -}: - -buildPythonPackage rec { - pname = "elegy"; - version = "0.8.6"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; - - src = fetchFromGitHub { - owner = "poets-ai"; - repo = "elegy"; - tag = version; - hash = "sha256-FZmLriYhsX+zyQKCtCjbOy6MH+AvjzHRNUyaDSXGlLI="; - }; - - patches = [ - (fetchpatch { - name = "use-poetry-core.patch"; - url = "https://github.com/poets-ai/elegy/commit/0ed472882f470ed9eb7a63b8a537ffabe7e19aa7.patch"; - hash = "sha256-nO/imHo7tEsiZh+64CF/M4eXQ1so3IunVhv8CvYP1ks="; - }) - ]; - - # The cloudpickle constraint is too strict. wandb is marked as an optional - # dependency but `buildPythonPackage` doesn't seem to respect that setting. - # Python constraint: https://github.com/poets-ai/elegy/issues/244 - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'python = ">=3.7,<3.10"' 'python = ">=3.7"' \ - --replace 'cloudpickle = "^1.5.0"' 'cloudpickle = "*"' \ - --replace 'wandb = { version = "^0.12.10", optional = true }' "" - ''; - - nativeBuildInputs = [ poetry-core ]; - - buildInputs = [ jaxlib ]; - - propagatedBuildInputs = [ - cloudpickle - deepdish - deepmerge - dm-haiku - pyyaml - tables - tabulate - tensorboardx - toolz - treex - typing-extensions - ]; - - pythonImportsCheck = [ "elegy" ]; - - nativeCheckInputs = [ - pytestCheckHook - sh - tensorflow - torch - ]; - - disabledTests = [ - # Fails with `Could not find compiler for platform Host: NOT_FOUND: could not find registered compiler for platform Host -- check target linkage`. - # Runs fine in docker with Ubuntu 22.04. I suspect the issue is the sandboxing in `nixpkgs` but not sure. - "test_saved_model_poly" - # AttributeError: module 'jax' has no attribute 'tree_multimap' - "DataLoaderTestCase" - ]; - - meta = with lib; { - description = "Neural Networks framework based on Jax inspired by Keras and Haiku"; - homepage = "https://github.com/poets-ai/elegy"; - changelog = "https://github.com/poets-ai/elegy/releases/tag/${version}"; - license = licenses.asl20; - maintainers = with maintainers; [ ndl ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 0521f9bc947b..ef1478fcfe39 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -247,6 +247,7 @@ mapAliases { enhancements = throw "enhancements is unmaintained upstream and has therefore been removed"; # added 2023-10-27 enum-compat = throw "enum-compat is a virtual package providing enum34, which does not do anything since Python 3.4"; # added 2025-02-15 enum34 = throw "enum34 is no longer needed since Python 3.4"; # added 2025-03-06 + elegy = throw "elegy has been removed because it has transitively been marked as broken since 2023."; # Added 2025-10-11 eris = throw "eris has been removed due to a hostile upstream moving tags and breaking src FODs"; # Added 2025-09-01 et_xmlfile = et-xmlfile; # added 2023-10-16 etebase-server = throw "pkgs.python3.etebase-server has been removed, use pkgs.etebase-server"; # added 2024-07-16 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5f5db002b880..e7d1eb23f942 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4665,8 +4665,6 @@ self: super: with self; { electrum-ecc = callPackage ../development/python-modules/electrum-ecc { }; - elegy = callPackage ../development/python-modules/elegy { }; - elementpath = callPackage ../development/python-modules/elementpath { }; elevate = callPackage ../development/python-modules/elevate { }; From 70b22d92d5edd35682571e078961727f1aabda24 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 11 Oct 2025 15:17:55 -0400 Subject: [PATCH 2/3] python3Packages.treex: drop Has transitively been marked broken for at least a full release cycle. Dropping per RFC 180. --- .../python-modules/treex/default.nix | 77 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 79 deletions(-) delete mode 100644 pkgs/development/python-modules/treex/default.nix diff --git a/pkgs/development/python-modules/treex/default.nix b/pkgs/development/python-modules/treex/default.nix deleted file mode 100644 index 3f76b078f17f..000000000000 --- a/pkgs/development/python-modules/treex/default.nix +++ /dev/null @@ -1,77 +0,0 @@ -{ - buildPythonPackage, - cloudpickle, - dm-haiku, - einops, - fetchFromGitHub, - flax, - hypothesis, - jaxlib, - keras, - lib, - poetry-core, - pytestCheckHook, - pyyaml, - rich, - tensorflow, - treeo, - torchmetrics, - torch, -}: - -buildPythonPackage rec { - pname = "treex"; - version = "0.6.11"; - format = "pyproject"; - - src = fetchFromGitHub { - owner = "cgarciae"; - repo = "treex"; - tag = version; - hash = "sha256-ObOnbtAT4SlrwOms1jtn7/XKZorGISGY6VuhQlC3DaQ="; - }; - - # At the time of writing (2022-03-29), rich is currently at version 11.0.0. - # The treeo dependency is compatible with a patch, but not marked as such in - # treex. See https://github.com/cgarciae/treex/issues/68. - pythonRelaxDeps = [ - "certifi" - "flax" - "rich" - "treeo" - ]; - - nativeBuildInputs = [ - poetry-core - ]; - - buildInputs = [ jaxlib ]; - - propagatedBuildInputs = [ - einops - flax - pyyaml - rich - treeo - torch - ]; - - nativeCheckInputs = [ - cloudpickle - dm-haiku - hypothesis - keras - pytestCheckHook - tensorflow - torchmetrics - ]; - - pythonImportsCheck = [ "treex" ]; - - meta = with lib; { - description = "Pytree Module system for Deep Learning in JAX"; - homepage = "https://github.com/cgarciae/treex"; - license = licenses.mit; - maintainers = with maintainers; [ ndl ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index ef1478fcfe39..c171810b57bf 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -838,6 +838,7 @@ mapAliases { transip = throw "transip has been removed because it is no longer maintained. TransIP SOAP V5 API was marked as deprecated"; # added 2023-02-27 py-tree-sitter = throw "Was merged with tree-sitter."; # added 2024-03-20 transmissionrpc = throw "transmissionrpc has been removed because it no longer builds and is unmaintained"; # added 2024-10-12 + treex = throw "treex has been removed because it has transitively been marked as broken since 2023."; # Added 2025-10-11 trezor_agent = trezor-agent; # Added 2024-01-07 tumpa = throw "tumpa was promoted to a top-level attribute"; # added 2022-11-19 tvdb_api = tvdb-api; # added 2023-10-20 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7d1eb23f942..e0b79cbcf6c0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18751,8 +18751,6 @@ self: super: with self; { treescope = callPackage ../development/python-modules/treescope { }; - treex = callPackage ../development/python-modules/treex { }; - treq = callPackage ../development/python-modules/treq { }; trevorproxy = callPackage ../development/python-modules/trevorproxy { }; From f320beeea56ae02fc9a85b95504d151a4c19db4f Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 11 Oct 2025 15:19:12 -0400 Subject: [PATCH 3/3] python3Packages.treeo: drop Has been marked broken for at least a full release cycle. Dropping per RFC 180. --- .../python-modules/treeo/default.nix | 54 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 pkgs/development/python-modules/treeo/default.nix diff --git a/pkgs/development/python-modules/treeo/default.nix b/pkgs/development/python-modules/treeo/default.nix deleted file mode 100644 index 27716b9fd31e..000000000000 --- a/pkgs/development/python-modules/treeo/default.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ - buildPythonPackage, - fetchFromGitHub, - fetchpatch, - jax, - jaxlib, - lib, - poetry-core, -}: - -buildPythonPackage rec { - pname = "treeo"; - # Note that there is a version 0.4.0, but it was released in error. At the - # time of writing (2022-03-29), v0.0.11 is the latest as reported on GitHub - # and PyPI. - version = "0.4.0"; - format = "pyproject"; - - src = fetchFromGitHub { - owner = "cgarciae"; - repo = "treeo"; - tag = version; - hash = "sha256-0py7sKjq6WqdsZwTq61jqaIbULTfwtpz29TTpt8M2Zw="; - }; - - # See https://github.com/cgarciae/treex/issues/68. - patches = [ - (fetchpatch { - url = "https://github.com/cgarciae/treeo/pull/14/commits/022915da2b3bf76406a7c79d1b4593bee7956f16.patch"; - hash = "sha256-WGxJqqrf2g0yZe30RyG1xxbloiqj1awuf1Y4eh5y+z0="; - }) - (fetchpatch { - url = "https://github.com/cgarciae/treeo/pull/14/commits/99f9488bd0c977780844fd79743167b0010d359b.patch"; - hash = "sha256-oKDYs+Ah0QXkhiJysIudQ6VLIiUiIcnQisxYp6GJuTc="; - }) - ]; - - nativeBuildInputs = [ poetry-core ]; - - # jax is not declared in the dependencies, but is necessary. - propagatedBuildInputs = [ jax ]; - - nativeCheckInputs = [ jaxlib ]; - pythonImportsCheck = [ "treeo" ]; - - meta = with lib; { - description = "Small library for creating and manipulating custom JAX Pytree classes"; - homepage = "https://github.com/cgarciae/treeo"; - license = licenses.mit; - maintainers = with maintainers; [ ndl ]; - # obsolete as of 2023-02-27 and not updated for more than a year as of 2023-08 - broken = true; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index c171810b57bf..bc295da5d9e6 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -838,6 +838,7 @@ mapAliases { transip = throw "transip has been removed because it is no longer maintained. TransIP SOAP V5 API was marked as deprecated"; # added 2023-02-27 py-tree-sitter = throw "Was merged with tree-sitter."; # added 2024-03-20 transmissionrpc = throw "transmissionrpc has been removed because it no longer builds and is unmaintained"; # added 2024-10-12 + treeo = throw "treeo has been removed because it has been marked as broken since 2023."; # Added 2025-10-11 treex = throw "treex has been removed because it has transitively been marked as broken since 2023."; # Added 2025-10-11 trezor_agent = trezor-agent; # Added 2024-01-07 tumpa = throw "tumpa was promoted to a top-level attribute"; # added 2022-11-19 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e0b79cbcf6c0..d5c763515b94 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18747,8 +18747,6 @@ self: super: with self; { treelog = callPackage ../development/python-modules/treelog { }; - treeo = callPackage ../development/python-modules/treeo { }; - treescope = callPackage ../development/python-modules/treescope { }; treq = callPackage ../development/python-modules/treq { };