<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytest
, sphinx
}:

buildPythonPackage rec {
  pname = "curio";
  version = "0.9";

  src = fetchPypi {
    inherit pname version;
    sha256 = "51d1a7b49b4f8dd1486ac785c72d522962e93ccfdcfc1f818f5c7553a307b5ef";
  };

  disabled = !isPy3k;

  checkInputs = [ pytest sphinx ];

  __darwinAllowLocalNetworking = true;

  # test_aside_basic times out,
  # test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
  checkPhase = ''
    # __pycache__ was packaged accidentally, https://github.com/dabeaz/curio/issues/301<commit_msg>python: curio: 0.9 -> 1.2<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytest
, sphinx
}:

buildPythonPackage rec {
  pname = "curio";
  version = "1.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "90f320fafb3f5b791f25ffafa7b561cc980376de173afd575a2114380de7939b";
  };

  disabled = !isPy3k;

  checkInputs = [ pytest sphinx ];

  __darwinAllowLocalNetworking = true;

  # test_aside_basic times out,
  # test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
  checkPhase = ''
    # __pycache__ was packaged accidentally, https://github.com/dabeaz/curio/issues/301
{'fraction_non_alphanumeric': 0.09446254071661238, 'fraction_numerical': 0.08224755700325732, 'mean_word_length': 4.252136752136752, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2884226', 'n_tokens_mistral': 533, 'n_tokens_neox': 462, 'n_words': 92}