pythonPackages.rpyc: fix tests to actually execute

This commit is contained in:
Robert Scott 2019-10-11 22:11:15 +01:00 committed by Jon
parent b24a32d0c7
commit e5f671a7dc

View File

@ -1,6 +1,6 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, nose , nose
, plumbum , plumbum
}: }:
@ -9,12 +9,21 @@ buildPythonPackage rec {
pname = "rpyc"; pname = "rpyc";
version = "4.1.2"; version = "4.1.2";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "tomerfiliba";
sha256 = "0df276076891797bbaaff322cc6debb02e10817426bba00a9beca915053a8a91"; repo = pname;
rev = version;
sha256 = "1xvrcik1650r1412fg79va0kd0fgg1ml241y1ai429qwy87dil1k";
}; };
propagatedBuildInputs = [ nose plumbum ]; 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
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Remote Python Call (RPyC), a transparent and symmetric RPC library"; description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";