summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyro5/default.nix
blob: 5f296a4727f6af4eb18854bc5273821dce37b0e5 (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
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,
  serpent,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pyro5";
  version = "5.15";
  format = "setuptools";

  src = fetchPypi {
    pname = "Pyro5";
    inherit version;
    hash = "sha256-gsPfyYYLSfiXso/yT+ZxbIQWcsYAr4/kDQ46f6yaP14=";
  };

  propagatedBuildInputs = [ serpent ];

  __darwinAllowLocalNetworking = true;

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [
    # Ignore network related tests, which fail in sandbox
    "StartNSfunc"
    "Broadcast"
    "GetIP"
    "TestNameServer"
    "TestBCSetup"
    # time sensitive tests
    "testTimeoutCall"
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [ "Socket" ];

  pythonImportsCheck = [ "Pyro5" ];

  meta = {
    description = "Distributed object middleware for Python (RPC)";
    homepage = "https://github.com/irmen/Pyro5";
    changelog = "https://github.com/irmen/Pyro5/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ peterhoeg ];
  };
}