summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rpyc/default.nix
blob: 872dc558ecbd4ad257ed77975ac8fbe3630de099 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  plumbum,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "rpyc";
  version = "6.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tomerfiliba";
    repo = "rpyc";
    tag = version;
    hash = "sha256-KLAOt0FStHV0senU/I4chxgn3PPM59CGhjTr/5U0sa8=";
  };

  build-system = [ hatchling ];

  dependencies = [ plumbum ];

  nativeCheckInputs = [ pytestCheckHook ];

  preCheck = ''
    export PYTHONPATH=$(pwd)/tests:$PYTHONPATH
  '';

  disabledTests = [
    # Disable tests that requires network access
    "test_api"
    "test_close_timeout"
    "test_deploy"
    "test_listing"
    "test_pruning"
    "test_rpyc"
    "test_instancecheck_across_connections"
    # Internal import error
    "test_modules"
    # Test is outdated
    # ssl.SSLError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:997)
    "test_ssl_conenction"
  ];

  disabledTestPaths = [
    # Internal import issue
    "tests/test_attributes.py"
    "tests/test_service_pickle.py"
    "tests/test_affinity.py"
    "tests/test_magic.py"
  ];

  pythonImportsCheck = [ "rpyc" ];

  doCheck = !stdenv.hostPlatform.isDarwin;

  meta = {
    description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";
    homepage = "https://rpyc.readthedocs.org";
    changelog = "https://github.com/tomerfiliba-org/rpyc/blob/${version}/CHANGELOG.rst";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}