<commit_before>{ stdenv
, fetchPyPi
, setuptools
, unzip
, wrapPython

, python
}:

stdenv.mkDerivation rec {
  name = "${python.executable}-setuptools-${setuptools.version}";
  # # Make sure to update pkgs/p/pip/bootstrap.nix setuptools hash when updating
  # version = "32.3.1";
  #
  # src = fetchPyPi {
  #   package = "setuptools";
  #   inherit version;
  #   type = ".zip";
  #   sha256 = "806bae0840429c13f6e6e44499f7c0b87f3b269fdfbd815d769569c1daa7c351";
  # };

  inherit (setuptools) meta src;

  nativeBuildInputs = [
    unzip
  ];

  buildInputs = [
    python
    wrapPython
  ];

  installPhase = ''
    dst=$out/${python.sitePackages}
    mkdir -pv $dst
    export PYTHONPATH="$dst:$PYTHONPATH"
    ${python.interpreter} setup.py install --prefix=$out --no-compile
    wrapPythonPrograms
  '';
}
<commit_msg>setuptool(bootstrap wheel): fix name for debugging<commit_after>{ stdenv
, fetchPyPi
, setuptools
, unzip
, wrapPython

, python
}:

stdenv.mkDerivation rec {
  name = "${python.executable}-setuptools-bootstrap-wheel-${setuptools.version}";

  inherit (setuptools) meta src;

  nativeBuildInputs = [
    unzip
  ];

  buildInputs = [
    python
    wrapPython
  ];

  installPhase = ''
    dst=$out/${python.sitePackages}
    mkdir -pv $dst
    export PYTHONPATH="$dst:$PYTHONPATH"
    ${python.interpreter} setup.py install --prefix=$out --no-compile
    wrapPythonPrograms
  '';
}

{'fraction_non_alphanumeric': 0.1328125, 'fraction_numerical': 0.03409090909090909, 'mean_word_length': 3.41692789968652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7240995', 'n_tokens_mistral': 554, 'n_tokens_neox': 517, 'n_words': 92}