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";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "5.3.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "pyproject";
|
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";
|
|
|
|
repo = pname;
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-gqYjCvyiLhgosmzYITrthMkjLA6WJcBbmjkTNXZKUxc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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
|
|
|
|
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"
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|