2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
2022-11-02 22:02:43 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-10-30 15:09:59 +00:00
|
|
|
, hatchling
|
2020-04-24 23:36:52 +00:00
|
|
|
, plumbum
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rpyc";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "6.0.0";
|
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomerfiliba";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "rpyc";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-BvXEXZlVbOmKBwnSBCDksUkbT7JPcMX48KZe/Gd5Y8Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2022-10-30 15:09:59 +00:00
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-01-13 20:06:32 +00:00
|
|
|
plumbum
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
preCheck = ''
|
|
|
|
export PYTHONPATH=$(pwd)/tests:$PYTHONPATH
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
disabledTests = [
|
2022-01-13 20:06:32 +00:00
|
|
|
# Disable tests that requires network access
|
2021-01-15 22:18:51 +00:00
|
|
|
"test_api"
|
2022-10-30 15:09:59 +00:00
|
|
|
"test_close_timeout"
|
|
|
|
"test_deploy"
|
|
|
|
"test_listing"
|
2021-01-15 22:18:51 +00:00
|
|
|
"test_pruning"
|
|
|
|
"test_rpyc"
|
2024-04-21 15:54:59 +00:00
|
|
|
"test_instancecheck_across_connections"
|
|
|
|
# Internal import error
|
|
|
|
"test_modules"
|
2022-01-13 20:06:32 +00:00
|
|
|
# Test is outdated
|
|
|
|
# ssl.SSLError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:997)
|
|
|
|
"test_ssl_conenction"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Internal import issue
|
|
|
|
"tests/test_attributes.py"
|
|
|
|
"tests/test_service_pickle.py"
|
|
|
|
"tests/test_affinity.py"
|
|
|
|
"tests/test_magic.py"
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"rpyc"
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";
|
|
|
|
homepage = "https://rpyc.readthedocs.org";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/tomerfiliba-org/rpyc/blob/${version}/CHANGELOG.rst";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|