1{ lib
2, buildPythonPackage
3, fetchPypi
4, serpent
5, dill
6, cloudpickle
7, msgpack
8, isPy27
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "pyro4";
14 version = "4.82";
15 format = "setuptools";
16
17 disabled = isPy27;
18
19 src = fetchPypi {
20 pname = "Pyro4";
21 inherit version;
22 hash = "sha256-UR9bCATpLdd9wzrfnJR3h+P56cWpaxIWLwVXp8TOIfs=";
23 };
24
25 propagatedBuildInputs = [
26 serpent
27 ];
28
29 buildInputs = [
30 dill
31 cloudpickle
32 msgpack
33 ];
34
35 checkInputs = [
36 pytestCheckHook
37 ];
38
39 # add testsupport.py to PATH
40 preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
41
42
43 pytestFlagsArray = [
44 # ignore network related tests, which fail in sandbox
45 "--ignore=tests/PyroTests/test_naming.py"
46 ];
47
48 disabledTests = [
49 "StartNSfunc"
50 "Broadcast"
51 "GetIP"
52 ];
53
54 # otherwise the tests hang the build
55 __darwinAllowLocalNetworking = true;
56
57 pythonImportsCheck = [
58 "Pyro4"
59 ];
60
61 meta = with lib; {
62 description = "Distributed object middleware for Python (RPC)";
63 homepage = "https://github.com/irmen/Pyro4";
64 license = licenses.mit;
65 maintainers = with maintainers; [ prusnak ];
66 };
67}