2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatchling,
|
|
|
|
plumbum,
|
|
|
|
pytestCheckHook,
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
build-system = [ hatchling ];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ plumbum ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ 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"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|