tunnelgraf: override paramiko (#444578)

Changed files
+25 -5
pkgs
by-name
tu
tunnelgraf
development
python-modules
sshtunnel
+23 -5
pkgs/by-name/tu/tunnelgraf/package.nix
···
{
lib,
fetchFromGitHub,
+
fetchPypi,
python3,
}:
-
python3.pkgs.buildPythonApplication rec {
+
let
+
py = python3.override {
+
packageOverrides = self: super: {
+
+
# Doesn't work with latest paramiko
+
paramiko = super.paramiko.overridePythonAttrs (oldAttrs: rec {
+
version = "3.4.0";
+
src = fetchPypi {
+
pname = "paramiko";
+
inherit version;
+
hash = "sha256-qsCPJqMdxN/9koIVJ9FoLZnVL572hRloEUqHKPPCdNM=";
+
};
+
doCheck = false;
+
});
+
};
+
};
+
in
+
py.pkgs.buildPythonApplication rec {
pname = "tunnelgraf";
version = "1.0.6";
pyproject = true;
···
pythonRelaxDeps = [
"click"
"deepmerge"
-
"paramiko"
"psutil"
"pydantic"
+
"python-hosts"
];
-
build-system = with python3.pkgs; [ hatchling ];
+
build-system = with py.pkgs; [ hatchling ];
-
dependencies = with python3.pkgs; [
+
dependencies = with py.pkgs; [
click
deepmerge
paramiko
···
meta = {
description = "Tool to manage SSH tunnel hops to many endpoints";
homepage = "https://github.com/denniswalker/tunnelgraf";
-
changelog = "https://github.com/denniswalker/tunnelgraf/releases/tag/v${version}";
+
changelog = "https://github.com/denniswalker/tunnelgraf/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "tunnelgraf";
+2
pkgs/development/python-modules/sshtunnel/default.nix
···
"test_get_keys"
"connect_via_proxy"
"read_ssh_config"
+
# Test doesn't work with paramiko < 4.0.0 and the patch above
+
"test_read_private_key_file"
];
meta = with lib; {