Unverified Commit 0bafdd77 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

ssh-mitm: remove override for paramiko (#422955)

parents cf4b4282 6675bb57
Loading
Loading
Loading
Loading
+25 −36
Original line number Diff line number Diff line
@@ -6,24 +6,7 @@
  python3,
}:

let
  py = python3.override {
    self = py;
    packageOverrides = self: super: {
      paramiko = super.paramiko.overridePythonAttrs (oldAttrs: rec {
        version = "3.4.1";
        src = oldAttrs.src.override {
          inherit version;
          hash = "sha256-ixUwKHCvf2ZS8uA4l1wdKXPwYEbLXX1lNVZos+y+zgw=";
        };
        dependencies = oldAttrs.dependencies ++ [ python3.pkgs.icecream ];
      });
    };
  };
in
with py.pkgs;

buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
  pname = "ssh-mitm";
  version = "5.0.1";
  pyproject = true;
@@ -35,12 +18,18 @@ buildPythonApplication rec {
    hash = "sha256-FmxVhYkPRZwS+zFwuId9nRGN832LRkgCNgDYb8Pg01U=";
  };

  build-system = [
  pythonRelaxDeps = [ "paramiko" ];

  build-system = with python3.pkgs; [
    hatchling
    hatch-requirements-txt
  ];

  dependencies = [
  nativeBuildInputs = [ installShellFiles ];

  dependencies =
    with python3.pkgs;
    [
      appimage
      argcomplete
      colored
@@ -54,13 +43,13 @@ buildPythonApplication rec {
      setuptools
      sshpubkeys
      wrapt
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ setuptools ];
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [ setuptools ];
  # fix for darwin users

  nativeBuildInputs = [ installShellFiles ];

  # Module has no tests
  doCheck = false;

  # Install man page
  postInstall = ''
    installManPage man1/*