blob: 95d29a4401bcdf0ff0d758b75dfd98db046a6631 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, flit-core
, psutil
, pytestCheckHook
, pyyaml
, pyzmq
, tornado
}:
buildPythonPackage rec {
pname = "circus";
version = "0.18.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-GTzoIk4GjO1mckz0gxBvtmdLUaV1g6waDn7Xp+6Mcas=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
psutil
pyzmq
tornado
];
nativeCheckInputs = [
pytestCheckHook
pyyaml
];
# On darwin: Too many open files
preCheck = lib.optionalString stdenv.isDarwin ''
ulimit -n 1024
'';
disabledTests = [
# these tests raise circus.tests.support.TimeoutException
"test_reload1"
"test_reload2"
"test_reload_sequential"
"test_reload_uppercase"
"test_reload_wid_1_worker"
"test_reload_wid_4_workers"
"test_add"
"test_add_start"
"test_command_already_running"
"test_launch_cli"
"test_handler"
"test_resource_watcher_max_cpu"
"test_resource_watcher_max_mem"
"test_resource_watcher_max_mem_abs"
"test_resource_watcher_min_cpu"
"test_resource_watcher_min_mem"
"test_resource_watcher_min_mem_abs"
"test_full_stats"
"test_watchdog_discovery_found"
"test_watchdog_discovery_not_found"
"test_dummy"
"test_handler"
"test_stdin_socket"
"test_stop_and_restart"
"test_stream"
"test_inherited"
"test_set_before_launch"
"test_set_by_arbiter"
"test_max_age"
"test_signal"
"test_exits_within_graceful_timeout"
"test_kills_after_graceful_timeout"
# this test requires socket communication
"test_plugins"
];
pythonImportsCheck = [ "circus" ];
meta = with lib; {
description = "A process and socket manager";
homepage = "https://github.com/circus-tent/circus";
license = licenses.asl20;
};
}
|