From e290252db8a78f2cd608955429094d65ebb6f168 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Thu, 25 Jul 2024 21:11:35 +0200 Subject: [PATCH] python311Packages.trfl: drop trfl --- .../python-modules/trfl/default.nix | 78 ------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 80 deletions(-) delete mode 100644 pkgs/development/python-modules/trfl/default.nix diff --git a/pkgs/development/python-modules/trfl/default.nix b/pkgs/development/python-modules/trfl/default.nix deleted file mode 100644 index 1e8120bdec68..000000000000 --- a/pkgs/development/python-modules/trfl/default.nix +++ /dev/null @@ -1,78 +0,0 @@ -{ - lib, - fetchFromGitHub, - buildPythonPackage, - numpy, - absl-py, - dm-tree, - wrapt, - tensorflow, - tensorflow-probability, - pytestCheckHook, - nose, -}: - -buildPythonPackage rec { - pname = "trfl"; - version = "1.2.0"; - format = "setuptools"; - - src = fetchFromGitHub { - owner = "deepmind"; - repo = pname; - rev = "ed6eff5b79ed56923bcb102e152c01ea52451d4c"; - hash = "sha256-UsDUKJCHSJ4gP+P95Pm7RsPpqTJqJhrsW47C7fTZ77I="; - }; - - buildInputs = [ - absl-py - dm-tree - numpy - wrapt - ]; - - propagatedBuildInputs = [ - tensorflow - tensorflow-probability - ]; - - nativeCheckInputs = [ - nose - pytestCheckHook - ]; - - pythonImportsCheck = [ "trfl" ]; - - # Tests currently fail with assertion errors - doCheck = false; - - disabledTestPaths = [ - # AssertionErrors - "trfl/indexing_ops_test.py" - "trfl/vtrace_ops_test.py" - "trfl/value_ops_test.py" - "trfl/target_update_ops_test.py" - "trfl/sequence_ops_test.py" - "trfl/retrace_ops_test.py" - "trfl/policy_ops_test.py" - "trfl/policy_gradient_ops_test.py" - "trfl/pixel_control_ops_test.py" - "trfl/periodic_ops_test.py" - "trfl/dpg_ops_test.py" - "trfl/distribution_ops_test.py" - "trfl/dist_value_ops_test.py" - "trfl/discrete_policy_gradient_ops_test.py" - "trfl/continuous_retrace_ops_test.py" - "trfl/clipping_ops_test.py" - "trfl/action_value_ops_test.py" - ]; - - meta = with lib; { - description = "TensorFlow Reinforcement Learning"; - homepage = "https://github.com/deepmind/trfl"; - license = licenses.asl20; - maintainers = with maintainers; [ onny ]; - # ModuleNotFoundError: No module named 'keras.api._v2' as tensorflow is too outdated - broken = true; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 99116ed6f119..4a5ad1d4f4b9 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1398,6 +1398,7 @@ mapAliases ({ libtransmission = lib.warn (transmission3Warning {prefix = "lib";}) libtransmission_3; # Added 2024-06-10 transfig = fig2dev; # Added 2022-02-15 transifex-client = transifex-cli; # Added 2023-12-29 + trfl = throw "trfl has been removed, because it has not received an update for 3 years and was broken"; # Added 2024-07-25 trezor_agent = trezor-agent; # Added 2024-01-07 openai-triton-llvm = triton-llvm; # added 2024-07-18 trustedGrub = throw "trustedGrub has been removed, because it is not maintained upstream anymore"; # Added 2023-05-10 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7c5ac7cbb3fc..e7ee20752d86 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15761,8 +15761,6 @@ self: super: with self; { trezor = callPackage ../development/python-modules/trezor { }; - trfl = callPackage ../development/python-modules/trfl { }; - trimesh = callPackage ../development/python-modules/trimesh { }; trino-python-client = callPackage ../development/python-modules/trino-python-client { };