Merge pull request #109139 from fabaff/rpyc

This commit is contained in:
Sandro 2021-01-12 23:03:23 +01:00 committed by GitHub
commit 73e81189bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,34 +1,38 @@
{ lib, stdenv
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, plumbum
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rpyc";
version = "4.1.3";
version = "5.0.1";
src = fetchFromGitHub {
owner = "tomerfiliba";
repo = pname;
rev = version;
sha256 = "145mi8p37x9cbfm5117g4ng7b5rmghjjwgm319qqhwgzvqg3y4j9";
sha256 = "1g75k4valfjgab00xri4pf8c8bb2zxkhgkpyy44fjk7s5j66daa1";
};
propagatedBuildInputs = [ plumbum ];
checkInputs = [ nose ];
checkPhase = ''
cd tests
# some tests have added complexities and some tests attempt network use
nosetests -I test_deploy -I test_gevent_server -I test_ssh -I test_registry
'';
checkInputs = [ pytestCheckHook ];
# Disable tests that requires network access
disabledTests = [
"test_api"
"test_pruning"
"test_rpyc"
];
pythonImportsCheck = [ "rpyc" ];
meta = with lib; {
description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";
homepage = "https://rpyc.readthedocs.org";
license = licenses.mit;
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}