summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2025-01-28 19:04:22 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2025-02-01 07:43:43 +0100
commit7d84bdf9cb85f399a8eafe8e17acee2354f13a21 (patch)
tree91c4bed4e918d8749942d4e3bf8b914281ae44e8
parentpython312Packages.clustershell: 1.9.2 -> 1.9.3 (diff)
downloadnixpkgs-7d84bdf9cb85f399a8eafe8e17acee2354f13a21.tar.gz
python312Packages.clustershell: install shell completion files
Available since version 1.9.3. (cherry picked from commit c6ad98f23ab85872ea117fbc976d94acbe2e9c52)
-rw-r--r--pkgs/development/python-modules/clustershell/default.nix7
1 files changed, 7 insertions, 0 deletions
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";