python3Packages.{elegy,treeo,treex}: drop (#451092)

This commit is contained in:
Wolfgang Walther
2025-10-23 12:36:11 +00:00
committed by GitHub
5 changed files with 3 additions and 237 deletions
@@ -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 ];
};
}
@@ -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;
};
}
@@ -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 ];
};
}
+3
View File
@@ -249,6 +249,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
@@ -842,6 +843,8 @@ 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
tvdb_api = tvdb-api; # added 2023-10-20
-6
View File
@@ -4672,8 +4672,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 { };
@@ -18780,12 +18778,8 @@ self: super: with self; {
treelog = callPackage ../development/python-modules/treelog { };
treeo = callPackage ../development/python-modules/treeo { };
treescope = callPackage ../development/python-modules/treescope { };
treex = callPackage ../development/python-modules/treex { };
treq = callPackage ../development/python-modules/treq { };
trevorproxy = callPackage ../development/python-modules/trevorproxy { };