16 buildPythonPackage rec {
17 pname = "clustershell";
22 pname = "ClusterShell";
24 hash = "sha256-rsF/HG4GNBC+N49b+sDO2AyUI1G44wJNBUwQNPzShD0=";
33 substituteInPlace lib/ClusterShell/Worker/Ssh.py \
34 --replace-fail '"ssh"' '"${openssh}/bin/ssh"' \
35 --replace-fail '"scp"' '"${openssh}/bin/scp"'
37 substituteInPlace lib/ClusterShell/Worker/fastsubprocess.py \
38 --replace-fail '"/bin/sh"' '"${bash}/bin/sh"'
41 substituteInPlace $f \
42 --replace-quiet '/bin/hostname' '${hostname}/bin/hostname' \
43 --replace-quiet '/bin/sleep' 'sleep' \
44 --replace-quiet '/bin/echo' 'echo' \
45 --replace-quiet '/bin/uname' 'uname' \
46 --replace-quiet '/bin/false' 'false' \
47 --replace-quiet '/bin/true' 'true' \
48 --replace-quiet '/usr/bin/printf' 'printf'
52 propagatedBuildInputs = [ pyyaml ];
60 pythonImportsCheck = [ "ClusterShell" ];
62 unittestFlagsArray = [
68 # Many tests want to open network connections
69 # https://github.com/cea-hpc/clustershell#test-suite
71 # Several tests fail on Darwin
73 rm tests/CLIClushTest.py
74 rm tests/TreeWorkerTest.py
75 rm tests/TaskDistantMixin.py
76 rm tests/TaskDistantTest.py
77 rm tests/TaskDistantPdshMixin.py
78 rm tests/TaskDistantPdshTest.py
79 rm tests/TaskRLimitsTest.py
80 rm tests/TreeGatewayTest.py
84 broken = stdenv.hostPlatform.isDarwin;
85 description = "Scalable Python framework for cluster administration";
86 homepage = "https://cea-hpc.github.io/clustershell";
87 license = licenses.lgpl21;
88 maintainers = [ maintainers.alexvorobiev ];