python3Packages.rpyc: update check part

This commit is contained in:
Fabian Affolter 2021-01-12 19:33:02 +01:00
parent d7e7eb3fb6
commit 253e48bb86

View File

@ -1,8 +1,9 @@
{ lib, stdenv { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, nose , nose
, plumbum , plumbum
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -18,17 +19,21 @@ buildPythonPackage rec {
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 = licenses.mit;
}; };
} }
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];