depot/third_party/nixpkgs/pkgs/development/python-modules/rpyc/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

78 lines
1.6 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, hatchling
, plumbum
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "rpyc";
version = "6.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tomerfiliba";
repo = "rpyc";
rev = "refs/tags/${version}";
hash = "sha256-BvXEXZlVbOmKBwnSBCDksUkbT7JPcMX48KZe/Gd5Y8Q=";
};
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.isDarwin;
meta = with lib; {
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 licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}