diff --git a/pkgs/development/python-modules/pyws66i/default.nix b/pkgs/development/python-modules/pyws66i/default.nix index 47df29289202..aa196c646a69 100644 --- a/pkgs/development/python-modules/pyws66i/default.nix +++ b/pkgs/development/python-modules/pyws66i/default.nix @@ -3,7 +3,9 @@ buildPythonPackage, fetchFromGitHub, pytestCheckHook, + pythonAtLeast, pythonOlder, + standard-telnetlib, }: buildPythonPackage rec { @@ -20,6 +22,8 @@ buildPythonPackage rec { hash = "sha256-NTL2+xLqSNsz4YdUTwr0nFjhm1NNgB8qDnWSoE2sizY="; }; + dependencies = lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyws66i" ];