<commit_before>{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, plumbum
}:

buildPythonPackage rec {
  pname = "rpyc";
  version = "4.1.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0df276076891797bbaaff322cc6debb02e10817426bba00a9beca915053a8a91";
  };

  propagatedBuildInputs = [ nose plumbum ];

  meta = with stdenv.lib; {
    description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";
    homepage = https://rpyc.readthedocs.org;
    license = licenses.mit;
  };

}<commit_msg>pythonPackages.rpyc: fix tests to actually execute<commit_after>{ stdenv
, buildPythonPackage
, fetchFromGitHub
, nose
, plumbum
}:

buildPythonPackage rec {
  pname = "rpyc";
  version = "4.1.2";

  src = fetchFromGitHub {
    owner = "tomerfiliba";
    repo = pname;
    rev = version;
    sha256 = "1xvrcik1650r1412fg79va0kd0fgg1ml241y1ai429qwy87dil1k";
  };

  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; {
    description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";
    homepage = https://rpyc.readthedocs.org;
    license = licenses.mit;
  };

}
{'fraction_non_alphanumeric': 0.10378057820607858, 'fraction_numerical': 0.05559673832468495, 'mean_word_length': 3.6391752577319587, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '668516', 'n_tokens_mistral': 538, 'n_tokens_neox': 484, 'n_words': 112}