summary refs log tree commit diff
path: root/pkgs/development/python-modules/rpyc/default.nix
blob: 5b2345f803e35db8998e8a6f58d1798de05c3ee2 (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
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, nose
, plumbum
}:

buildPythonPackage rec {
  pname = "rpyc";
  version = "4.1.3";

  src = fetchFromGitHub {
    owner = "tomerfiliba";
    repo = pname;
    rev = version;
    sha256 = "145mi8p37x9cbfm5117g4ng7b5rmghjjwgm319qqhwgzvqg3y4j9";
  };

  propagatedBuildInputs = [ plumbum ];

  checkInputs = [ nose ];
  checkPhase = ''
    cd tests
    # some tests have added complexities and some tests attempt network use
    nosetests -I test_deploy -I test_gevent_server -I test_ssh -I test_registry
  '';

  meta = with stdenv.lib; {
    description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";
    homepage = https://rpyc.readthedocs.org;
    license = licenses.mit;
  };

}