From c6ad98f23ab85872ea117fbc976d94acbe2e9c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Tue, 28 Jan 2025 19:04:22 +0100 Subject: [PATCH] python312Packages.clustershell: install shell completion files Available since version 1.9.3. --- pkgs/development/python-modules/clustershell/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/clustershell/default.nix b/pkgs/development/python-modules/clustershell/default.nix index fdc555498aab..3c72369dcd44 100644 --- a/pkgs/development/python-modules/clustershell/default.nix +++ b/pkgs/development/python-modules/clustershell/default.nix @@ -8,6 +8,7 @@ pyyaml, openssh, unittestCheckHook, + installShellFiles, bc, hostname, bash, @@ -51,6 +52,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ pyyaml ]; + nativeBuildInputs = [ installShellFiles ]; + nativeCheckInputs = [ bc hostname @@ -80,6 +83,10 @@ buildPythonPackage rec { rm tests/TreeGatewayTest.py ''; + postInstall = '' + installShellCompletion --bash bash_completion.d/* + ''; + meta = with lib; { broken = stdenv.hostPlatform.isDarwin; description = "Scalable Python framework for cluster administration";