blob: 8335e6db9d6118c34c9dd0ba5b6849bfdc3c321d (
plain)
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
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
flit-core,
psutil,
pytestCheckHook,
pyyaml,
pyzmq,
tornado,
}:
buildPythonPackage rec {
pname = "circus";
version = "0.19.0";
pyproject = true;
src = fetchFromGitHub {
owner = "circus-tent";
repo = "circus";
tag = version;
hash = "sha256-MiZXiGb6F8LAJLAdmEDBO8Y5cJxHJy7jMFi50Ac3Bsc=";
};
build-system = [ flit-core ];
dependencies = [
psutil
pyzmq
tornado
];
nativeCheckInputs = [
pytestCheckHook
pyyaml
];
# On darwin: Too many open files
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
ulimit -n 1024
'';
disabledTests = [
# Depends on the build machine configuration
"test_resource_watcher_max_mem"
"test_resource_watcher_min_mem_abs"
# Compares with magic string
"test_streams"
];
pythonImportsCheck = [ "circus" ];
__darwinAllowLocalNetworking = true;
meta = {
description = "Process and socket manager";
homepage = "https://github.com/circus-tent/circus";
changelog = "https://github.com/circus-tent/circus/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|