Unverified Commit 24ceff03 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages; drop various unmaintained, broken leaf packages (#459750)

parents 676562d4 0d206b3a
Loading
Loading
Loading
Loading
+0 −49
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  meson,
  ninja,
  setuptools,
  toml,
  wheel,
}:

# TODO: offer meson as a Python package so we have dist-info folder.

buildPythonPackage rec {
  pname = "mesonpep517";
  version = "0.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Fyo7JfLqHJqbahEjVDt/0xJxOfVLqLn3xNJ4lSB7KIw=";
  };

  # Applies the following merge request, which doesn't apply cleanly:
  # https://gitlab.com/thiblahute/mesonpep517/-/merge_requests/25
  #
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'backend-path = "."' 'backend-path = ["."]'
  '';

  build-system = [
    setuptools
    wheel
  ];

  dependencies = [ toml ];

  propagatedNativeBuildInputs = [
    meson
    ninja
  ];

  meta = {
    description = "Create pep517 compliant packages from the meson build system";
    homepage = "https://gitlab.com/thiblahute/mesonpep517";
    license = lib.licenses.asl20;
  };
}
+0 −42
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  callPackage,
  fetchPypi,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "pycategories";
  version = "1.2.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-vXDstelOdlnlZOoVPwx2cykdw3xSbCRoAPwI1sU3gJk=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "'pytest-runner'," ""
    substituteInPlace setup.cfg \
      --replace "--cov-report term --cov=categories" ""
  '';

  # Is private because the author states it's unmaintained
  # and shouldn't be used in production code
  propagatedBuildInputs = [ (callPackage ./infix.nix { }) ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Implementation of some concepts from category theory";
    homepage = "https://gitlab.com/danielhones/pycategories";
    changelog = "https://gitlab.com/danielhones/pycategories/-/blob/v${version}/CHANGELOG.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ dmvianna ];
  };
}
+0 −25
Original line number Diff line number Diff line
{
  buildPythonPackage,
  lib,
  fetchPypi,
}:

buildPythonPackage rec {
  pname = "infix";
  version = "1.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "a1bfdcf875bc072f41e426d0673f2e3017750743bb90cc725fffb292eb09648c";
  };

  # No tests
  doCheck = false;

  meta = {
    homepage = "https://github.com/borntyping/python-infix";
    description = "Decorator that allows functions to be used as infix functions";
    license = lib.licenses.mit;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -256,6 +256,7 @@ mapAliases {
  memcached = throw "'memcached' has been renamed to/replaced by 'python-memcached'"; # Converted to throw 2025-10-29
  memory_profiler = throw "'memory_profiler' has been renamed to/replaced by 'memory-profiler'"; # Converted to throw 2025-10-29
  mesa = throw "python3Packages.mesa has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-03
  mesonpep517 = throw "'mesonpep517' has been removed as it was broken and unmaintained."; # added 2025-11-08
  minikerberos-bad = throw "'minikerberos-bad' has been renamed to/replaced by 'kerbad'"; # added 2025-11-06
  mir_eval = throw "'mir_eval' has been renamed to/replaced by 'mir-eval'"; # Converted to throw 2025-10-29
  mistune_2_0 = throw "'mistune_2_0' has been renamed to/replaced by 'mistune'"; # Converted to throw 2025-10-29
@@ -309,6 +310,7 @@ mapAliases {
  py-eth-sig-utils = throw "py-eth-sig-utils has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-04
  py-scrypt = scrypt; # added 2025-08-07
  py_stringmatching = throw "'py_stringmatching' has been renamed to/replaced by 'py-stringmatching'"; # Converted to throw 2025-10-29
  pycategories = throw "'pycategories' has been removed as it was broken and unmaintained"; # added 2025-11-08
  PyChromecast = throw "'PyChromecast' has been renamed to/replaced by 'pychromecast'"; # Converted to throw 2025-10-29
  pydns = throw "'pydns' has been renamed to/replaced by 'py3dns'"; # Converted to throw 2025-10-29
  pyechonest = throw "pyechonest was removed because it was broken and unmaintained"; # added 2025-08-26
+0 −4
Original line number Diff line number Diff line
@@ -9341,8 +9341,6 @@ self: super: with self; {
  meson-python = callPackage ../development/python-modules/meson-python { inherit (pkgs) ninja; };
  mesonpep517 = callPackage ../development/python-modules/mesonpep517 { };
  messagebird = callPackage ../development/python-modules/messagebird { };
  metaflow = callPackage ../development/python-modules/metaflow { };
@@ -12818,8 +12816,6 @@ self: super: with self; {
  pycatch22 = callPackage ../development/python-modules/pycatch22 { };
  pycategories = callPackage ../development/python-modules/pycategories { };
  pycayennelpp = callPackage ../development/python-modules/pycayennelpp { };
  pycddl = callPackage ../development/python-modules/pycddl { };