Merge master into staging

This commit is contained in:
Frederik Rietdijk
2018-06-25 10:58:39 +02:00
177 changed files with 1405 additions and 524 deletions

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "click-log";
version = "0.3.2";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "16fd1ca3fc6b16c98cea63acf1ab474ea8e676849dc669d86afafb0ed7003124";
sha256 = "1r1x85023cslb2pwldd089jjk573mk3w78cnashs77wrx7yz8fj9";
};
propagatedBuildInputs = [ click ];

View File

@@ -0,0 +1,89 @@
{ stdenv, buildPythonPackage, fetchPypi, pyyaml, openssh
, nose, bc, hostname, coreutils, bash, gnused
}:
buildPythonPackage rec {
pname = "ClusterShell";
version = "1.8";
src = fetchPypi {
inherit pname version;
sha256 = "1bm0pq8w2rql9q9i2bhs865rqvb6zck3h3gkb1d0mh59arrr7p4m";
};
propagatedBuildInputs = [ pyyaml ];
postPatch = ''
substituteInPlace lib/ClusterShell/Worker/Ssh.py \
--replace '"ssh"' '"${openssh}/bin/ssh"' \
--replace '"scp"' '"${openssh}/bin/scp"'
substituteInPlace lib/ClusterShell/Worker/fastsubprocess.py \
--replace '"/bin/sh"' '"${bash}/bin/sh"'
'';
checkInputs = [ nose bc hostname coreutils gnused ];
# Many tests want to open network connections
# https://github.com/cea-hpc/clustershell#test-suite
#
# Several tests fail on Darwin
checkPhase = ''
for f in tests/*; do
substituteInPlace $f \
--replace '/bin/hostname' '${hostname}/bin/hostname' \
--replace '/bin/sleep' '${coreutils}/bin/sleep' \
--replace '"sleep' '"${coreutils}/bin/sleep' \
--replace '/bin/echo' '${coreutils}/bin/echo' \
--replace '/bin/uname' '${coreutils}/bin/uname' \
--replace '/bin/false' '${coreutils}/bin/false' \
--replace '/bin/true' '${coreutils}/bin/true' \
--replace '/usr/bin/printf' '${coreutils}/bin/printf' \
--replace '"sed' '"${gnused}/bin/sed' \
--replace ' sed ' ' ${gnused}/bin/sed '
done
rm tests/CLIClushTest.py
rm tests/TreeWorkerTest.py
rm tests/TaskDistantMixin.py
rm tests/TaskDistantTest.py
rm tests/TaskDistantPdshMixin.py
rm tests/TaskDistantPdshTest.py
rm tests/TaskRLimitsTest.py
nosetests -v \
-e test_channel_ctl_shell_remote1 \
-e test_channel_ctl_shell_remote2 \
-e test_fromall_grouplist \
-e test_rank_placeholder \
-e test_engine_on_the_fly_launch \
-e test_ev_pickup_fanout \
-e test_ev_pickup_fanout_legacy \
-e test_timeout \
-e test_008_broken_pipe_on_write \
-e testLocalBufferRCGathering \
-e testLocalBuffers \
-e testLocalErrorBuffers \
-e testLocalFanout \
-e testLocalRetcodes \
-e testLocalRCBufferGathering \
-e testLocalSingleLineBuffers \
-e testLocalWorkerFanout \
-e testSimpleMultipleCommands \
-e testClushConfigSetRlimit \
-e testTimerInvalidateInHandler \
-e testTimerSetNextFireInHandler \
-e test_channel_ctl_shell_mlocal1 \
-e test_channel_ctl_shell_mlocal2 \
-e test_channel_ctl_shell_mlocal3 \
-e test_node_placeholder \
tests/*.py
'';
meta = with stdenv.lib; {
description = "Scalable Python framework for cluster administration";
homepage = https://cea-hpc.github.io/clustershell;
license = licenses.lgpl21;
maintainers = [ maintainers.alexvorobiev ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy3k
, transitions, websockets, passlib, docopt, pyyaml, nose }:
buildPythonPackage rec {
@@ -12,6 +12,13 @@ buildPythonPackage rec {
sha256 = "6f61e05007648a4f33e300fafcf42776ca95508ba1141799f94169427ce5018c";
};
patches = [
(fetchpatch {
url = "https://github.com/beerfactory/hbmqtt/commit/75a85d1ea4cb41f2a15f2681d3114da7158942ae.patch";
sha256 = "0bl4v5zxp4kz2w7riwrx48f7yqmp7pxg79g9qavkda0i85lxswnp";
})
];
propagatedBuildInputs = [ transitions websockets passlib docopt pyyaml ];
checkInputs = [ nose ];

View File

@@ -2,7 +2,7 @@
buildPythonPackage rec {
pname = "netdisco";
version = "1.4.0";
version = "1.5.0";
disabled = !isPy3k;
@@ -11,7 +11,7 @@ buildPythonPackage rec {
owner = "home-assistant";
repo = pname;
rev = version;
sha256 = "0q1cl76a0fwxm80lkk7cpd4p23r2bvf1a45nb7n61cgzrqcv43q1";
sha256 = "1lr0zpzdjkhcaihyxq8wv7c1wjm7xgx2sl8xmwp1kyivkgybk6n9";
};
propagatedBuildInputs = [ requests zeroconf netifaces ];

View File

@@ -1,4 +1,4 @@
{ lib, fetchPypi, buildPythonPackage }:
{ lib, fetchPypi, buildPythonPackage, hostPlatform }:
buildPythonPackage rec {
pname = "pyserial";
@@ -10,6 +10,7 @@ buildPythonPackage rec {
};
checkPhase = "python -m unittest discover -s test";
doInstallCheck = !hostPlatform.isDarwin; # broken on darwin
meta = with lib; {
homepage = "https://github.com/pyserial/pyserial";

View File

@@ -14,6 +14,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ ua-parser ];
doCheck = false; # some tests fail due to ua-parser bump to 0.8.0
meta = with stdenv.lib; {
description = "A Python library to identify devices by parsing user agent strings";
homepage = https://github.com/selwin/python-user-agents;