mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 01:16:57 +01:00
Merge pull request #109139 from fabaff/rpyc
This commit is contained in:
commit
73e81189bd
1 changed files with 15 additions and 11 deletions
|
@ -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 ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue