<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, numba
, numpy
, scipy
  # Test Inputs
, pytestCheckHook
, dask
}:

buildPythonPackage rec {
  pname = "sparse";
  version = "0.13.0";

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "685dc994aa770ee1b23f2d5392819c8429f27958771f8dceb2c4fb80210d5915";
  };

  propagatedBuildInputs = [
    numba
    numpy
    scipy
  ];
  checkInputs = [ pytestCheckHook dask ];

  pythonImportsCheck = [ "sparse" ];

  meta = with lib; {
    description = "Sparse n-dimensional arrays computations";
    homepage = "https://sparse.pydata.org/en/stable/";
    changelog = "https://sparse.pydata.org/en/stable/changelog.html";
    downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
    license = licenses.bsd3;
    maintainers = [ maintainers.costrouc ];<commit_msg>Python310Packages.sparse: disable on older Python releases<commit_after>{ lib
, buildPythonPackage
, dask
, fetchPypi
, numba
, numpy
, pytestCheckHook
, pythonOlder
, scipy
}:

buildPythonPackage rec {
  pname = "sparse";
  version = "0.13.0";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-aF3JlKp3DuGyPy1TkoGchCnyeVh3H43OssT7gCENWRU=";
  };

  propagatedBuildInputs = [
    numba
    numpy
    scipy
  ];

  checkInputs = [
    dask
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "sparse"
  ];

  meta = with lib; {
    description = "Sparse n-dimensional arrays computations";
    homepage = "https://sparse.pydata.org/";
    changelog = "https://sparse.pydata.org/en/stable/changelog.html";
    downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ costrouc ];
{'fraction_non_alphanumeric': 0.12424075096631695, 'fraction_numerical': 0.040861402540033134, 'mean_word_length': 3.4630541871921183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1080044', 'n_tokens_mistral': 721, 'n_tokens_neox': 672, 'n_words': 116}