tunnelgraf: override paramiko (#444578)

authored by Fabian Affolter and committed by GitHub d1e93f5b 93efdf2d

+25 -5
+23 -5
pkgs/by-name/tu/tunnelgraf/package.nix
··· 1 1 { 2 2 lib, 3 3 fetchFromGitHub, 4 + fetchPypi, 4 5 python3, 5 6 }: 6 7 7 - python3.pkgs.buildPythonApplication rec { 8 + let 9 + py = python3.override { 10 + packageOverrides = self: super: { 11 + 12 + # Doesn't work with latest paramiko 13 + paramiko = super.paramiko.overridePythonAttrs (oldAttrs: rec { 14 + version = "3.4.0"; 15 + src = fetchPypi { 16 + pname = "paramiko"; 17 + inherit version; 18 + hash = "sha256-qsCPJqMdxN/9koIVJ9FoLZnVL572hRloEUqHKPPCdNM="; 19 + }; 20 + doCheck = false; 21 + }); 22 + }; 23 + }; 24 + in 25 + py.pkgs.buildPythonApplication rec { 8 26 pname = "tunnelgraf"; 9 27 version = "1.0.6"; 10 28 pyproject = true; ··· 19 37 pythonRelaxDeps = [ 20 38 "click" 21 39 "deepmerge" 22 - "paramiko" 23 40 "psutil" 24 41 "pydantic" 42 + "python-hosts" 25 43 ]; 26 44 27 - build-system = with python3.pkgs; [ hatchling ]; 45 + build-system = with py.pkgs; [ hatchling ]; 28 46 29 - dependencies = with python3.pkgs; [ 47 + dependencies = with py.pkgs; [ 30 48 click 31 49 deepmerge 32 50 paramiko ··· 46 64 meta = { 47 65 description = "Tool to manage SSH tunnel hops to many endpoints"; 48 66 homepage = "https://github.com/denniswalker/tunnelgraf"; 49 - changelog = "https://github.com/denniswalker/tunnelgraf/releases/tag/v${version}"; 67 + changelog = "https://github.com/denniswalker/tunnelgraf/releases/tag/${src.tag}"; 50 68 license = lib.licenses.mit; 51 69 maintainers = with lib.maintainers; [ fab ]; 52 70 mainProgram = "tunnelgraf";
+2
pkgs/development/python-modules/sshtunnel/default.nix
··· 35 35 "test_get_keys" 36 36 "connect_via_proxy" 37 37 "read_ssh_config" 38 + # Test doesn't work with paramiko < 4.0.0 and the patch above 39 + "test_read_private_key_file" 38 40 ]; 39 41 40 42 meta = with lib; {