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