From beff13896ba9ed0d89cc67376ce625e4edc5f22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 25 Sep 2024 14:44:50 +0200 Subject: [PATCH 1/4] python312Packages.ncclient: fix missing dependency after paramiko changes --- pkgs/development/python-modules/ncclient/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/ncclient/default.nix b/pkgs/development/python-modules/ncclient/default.nix index 11f3424083cb..8be90d3d9838 100644 --- a/pkgs/development/python-modules/ncclient/default.nix +++ b/pkgs/development/python-modules/ncclient/default.nix @@ -27,7 +27,7 @@ buildPythonPackage rec { paramiko lxml six - ]; + ] ++ paramiko.optional-dependencies.ed25519; nativeCheckInputs = [ pytestCheckHook ]; From 90909568076a20e062c91fe60b5c6be50e10a625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 25 Sep 2024 14:45:08 +0200 Subject: [PATCH 2/4] python312Packages.sshtunnel: fix missing dependency after paramiko changes, set pyproject = true --- pkgs/development/python-modules/sshtunnel/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/sshtunnel/default.nix b/pkgs/development/python-modules/sshtunnel/default.nix index 1422b50c320d..ecb8e24d01a4 100644 --- a/pkgs/development/python-modules/sshtunnel/default.nix +++ b/pkgs/development/python-modules/sshtunnel/default.nix @@ -5,19 +5,22 @@ paramiko, pytestCheckHook, mock, + setuptools, }: buildPythonPackage rec { - version = "0.4.0"; - format = "setuptools"; pname = "sshtunnel"; + version = "0.4.0"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-58sOp3Tbgb+RhE2yLecqQKro97D5u5ug9mbUdO9r+fw="; }; - propagatedBuildInputs = [ paramiko ]; + build-system = [ setuptools ]; + + dependencies = [ paramiko ] ++ paramiko.optional-dependencies.ed25519; nativeCheckInputs = [ pytestCheckHook From 224b0950df6f1d4b920e7c078d2e5f1ef8bd0e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 25 Sep 2024 18:00:52 +0200 Subject: [PATCH 3/4] python312Packages.docker: fix missing dependency after paramiko changes --- pkgs/development/python-modules/docker/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/docker/default.nix b/pkgs/development/python-modules/docker/default.nix index 4ed5c9c113dc..69bba263a3d9 100644 --- a/pkgs/development/python-modules/docker/default.nix +++ b/pkgs/development/python-modules/docker/default.nix @@ -14,7 +14,7 @@ requests, urllib3, - # optional-dependenices + # optional-dependencies paramiko, pynacl, # optional in paramiko, required here websocket-client, @@ -49,7 +49,7 @@ buildPythonPackage rec { ]; optional-dependencies = { - ssh = [ paramiko ]; + ssh = [ paramiko paramiko.optional-dependencies.ed25519 ]; tls = []; websockets = [ websocket-client ]; }; From 7ab47b15138cdb0e486813e6266404fb7ebc2625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 Sep 2024 13:53:47 +0200 Subject: [PATCH 4/4] Revert "python312Packages.docker: fix tests" This reverts commit 3bd454d384bc98193567d000666314875528c061. --- pkgs/development/python-modules/docker/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/docker/default.nix b/pkgs/development/python-modules/docker/default.nix index 69bba263a3d9..bcc56c0259f4 100644 --- a/pkgs/development/python-modules/docker/default.nix +++ b/pkgs/development/python-modules/docker/default.nix @@ -16,7 +16,6 @@ # optional-dependencies paramiko, - pynacl, # optional in paramiko, required here websocket-client, # tests @@ -58,10 +57,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook - paramiko - pynacl - websocket-client - ]; + ] ++ lib.flatten (lib.attrValues optional-dependencies); pytestFlagsArray = [ "tests/unit" ];