aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pyro4/default.nix
blob: 3cf9d3f31437c78586fe3bfc8840af2268c4f459 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, lib
, python
, serpent
, dill
, cloudpickle
, msgpack
, isPy27
, selectors34
, pytest
}:

buildPythonPackage rec {
  pname = "Pyro4";
  version = "4.80";

  src = fetchPypi {
    inherit pname version;
    sha256 = "46847ca703de3f483fbd0b2d22622f36eff03e6ef7ec7704d4ecaa3964cb2220";
  };

  propagatedBuildInputs = [
    serpent
  ] ++ lib.optionals isPy27 [ selectors34 ];

  buildInputs = [
    dill
    cloudpickle
    msgpack
  ];

  checkInputs = [ pytest ];
  # add testsupport.py to PATH
  # ignore network related tests, which fail in sandbox
  checkPhase = ''
    PYTHONPATH=tests/PyroTests:$PYTHONPATH
    pytest -k 'not StartNSfunc \
               and not Broadcast \
               and not GetIP' \
           --ignore=tests/PyroTests/test_naming.py
  '';

  meta = with stdenv.lib; {
    description = "Distributed object middleware for Python (RPC)";
    homepage = "https://github.com/irmen/Pyro4";
    license = licenses.mit;
    maintainers = with maintainers; [ prusnak ];
    };
}