blob: 387d5135d2d797ceb5cf3d1a698d19d00449e11a (
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
|
{
lib,
buildPythonPackage,
cloudpickle,
dill,
fetchPypi,
msgpack,
pytestCheckHook,
pythonAtLeast,
serpent,
}:
buildPythonPackage rec {
pname = "pyro4";
version = "4.82";
format = "setuptools";
# No support Python >= 3.11
# https://github.com/irmen/Pyro4/issues/246
disabled = pythonAtLeast "3.11";
src = fetchPypi {
pname = "Pyro4";
inherit version;
hash = "sha256-UR9bCATpLdd9wzrfnJR3h+P56cWpaxIWLwVXp8TOIfs=";
};
propagatedBuildInputs = [ serpent ];
buildInputs = [
dill
cloudpickle
msgpack
];
nativeCheckInputs = [ pytestCheckHook ];
# add testsupport.py to PATH
preCheck = ''
PYTHONPATH=tests/PyroTests:$PYTHONPATH
'';
disabledTestPaths = [
# ignore network related tests, which fail in sandbox
"tests/PyroTests/test_naming.py"
];
disabledTests = [
"StartNSfunc"
"Broadcast"
"GetIP"
];
# otherwise the tests hang the build
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "Pyro4" ];
meta = with lib; {
description = "Distributed object middleware for Python (RPC)";
homepage = "https://github.com/irmen/Pyro4";
changelog = "https://github.com/irmen/Pyro4/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}
|