Commit bba4d35b authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.tbm-utils: drop

Unmaintained since 2020.
parent 1f9d0caa
Loading
Loading
Loading
Loading
+0 −89
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  attrs,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  pendulum,
  poetry-core,
  pprintpp,
  pytestCheckHook,
  wrapt,
}:

buildPythonPackage rec {
  pname = "tbm-utils";
  version = "2.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "thebigmunch";
    repo = "tbm-utils";
    tag = version;
    hash = "sha256-AEKawsAxDSDNkIaXEFFgdEBOY2PpASDrhlDrsnM5eyA=";
  };

  patches = [
    # Migrate to pendulum > 3, https://github.com/thebigmunch/tbm-utils/pull/3
    (fetchpatch {
      name = "support-pendulum-3.patch";
      url = "https://github.com/thebigmunch/tbm-utils/commit/473534fae2d9a8dea9100cead6c54cab3f5cd0cd.patch";
      hash = "sha256-3T0KhSmO9r1vM67FWEnTZMQV4b5jS2xtPHI0t9NnCmI=";
    })
    (fetchpatch {
      name = "update-testsupport-pendulum-3.patch";
      url = "https://github.com/thebigmunch/tbm-utils/commit/a0331d0c15f11cd26bfbb42eebd17296167161ed.patch";
      hash = "sha256-KG6yfnnBltavbNvIBTdbK+CPXwZTLYl14925RY2a8vs=";
    })
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'poetry>=1.0.0' 'poetry-core' \
      --replace-fail 'poetry.masonry.api' 'poetry.core.masonry.api'

    substituteInPlace pytest.ini \
      --replace-fail 'strict = True' 'strict = False'
  '';

  pythonRelaxDeps = [
    "attrs"
    "pendulum"
  ];

  build-system = [ poetry-core ];

  propagatedBuildInputs = [
    attrs
    pendulum
    pprintpp
    wrapt
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
    # Skip on macOS because /etc/localtime is accessed through the pendulum
    # library, which is not allowed in a sandboxed build.
    "test_create_parser_filter_dates"
    "test_parse_args"
  ];

  disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
    # Skip on macOS because /etc/localtime is accessed through the pendulum
    # library, which is not allowed in a sandboxed build.
    "tests/test_datetime.py"
    "tests/test_misc.py"
  ];

  pythonImportsCheck = [ "tbm_utils" ];

  meta = {
    description = "Commonly-used set of utilities";
    homepage = "https://github.com/thebigmunch/tbm-utils";
    changelog = "https://github.com/thebigmunch/tbm-utils/blob/${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -537,6 +537,7 @@ mapAliases {
  systembridge = throw "systembridge has been removed because it is unmaintained upstream"; # Added 2025-11-23
  systemd = throw "systemd was removed because it was misnamed; use systemd-python instead"; # added 2025-11-09
  sysv_ipc = throw "'sysv_ipc' has been renamed to/replaced by 'sysv-ipc'"; # Converted to throw 2025-10-29
  tbm-utils = throw "'tbm-utils' has been removed as it is unmaintained since 2020"; # Added 2026-03-12
  tensorflow-bin_2 = throw "'tensorflow-bin_2' has been renamed to/replaced by 'tensorflow-bin'"; # Converted to throw 2025-10-29
  tensorflow-build_2 = throw "'tensorflow-build_2' has been renamed to/replaced by 'tensorflow-build'"; # Converted to throw 2025-10-29
  tensorflow-estimator = throw "'tensorflow-estimator' has been renamed to/replaced by 'tensorflow-estimator-bin'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -18918,8 +18918,6 @@ self: super: with self; {
      ;
  };
  tbm-utils = callPackage ../development/python-modules/tbm-utils { };
  tccbox = callPackage ../development/python-modules/tccbox { };
  tcolorpy = callPackage ../development/python-modules/tcolorpy { };