<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, semantic-version
, setuptools
, setuptools_scm
, toml
}:

buildPythonPackage rec {
  pname = "setuptools-rust";
  version = "0.11.6";

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "a5b5954909cbc5d66b914ee6763f81fa2610916041c7266105a469f504a7c4ca";
  };

  nativeBuildInputs = [ setuptools_scm ];

  propagatedBuildInputs = [ semantic-version setuptools toml ];

  meta = with lib; {
    description = "Setuptools plugin for Rust support";
    homepage = "https://github.com/PyO3/setuptools-rust";
    changelog = "https://github.com/PyO3/setuptools-rust/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ danieldk ];
  };
}
<commit_msg>pythonPackages.setuptools-rust: cleanup, add pythonImportsCheck<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, semantic-version
, setuptools
, setuptools-scm
, toml
}:

buildPythonPackage rec {
  pname = "setuptools-rust";
  version = "0.11.6";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "a5b5954909cbc5d66b914ee6763f81fa2610916041c7266105a469f504a7c4ca";
  };

  nativeBuildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [ semantic-version setuptools toml ];

  # no tests
  doCheck = false;
  pythonImportsCheck = [ "setuptools_rust" ];

  meta = with lib; {
    description = "Setuptools plugin for Rust support";
    homepage = "https://github.com/PyO3/setuptools-rust";
    changelog = "https://github.com/PyO3/setuptools-rust/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ danieldk ];
  };
}

{'fraction_non_alphanumeric': 0.1178909952606635, 'fraction_numerical': 0.06872037914691943, 'mean_word_length': 4.04179104477612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1369988', 'n_tokens_mistral': 693, 'n_tokens_neox': 612, 'n_words': 107}