<commit_before>{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, lzma
, python
}:

buildPythonPackage rec {
  pname = "backports.lzma";
  version = "0.0.9";

  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "9ba5d94214a79900ee297a594b8e154cd8e4a54d26eb06243c0e2f3ad5286539";
  };

  buildInputs = [ lzma ];

  # Needs the compiled module in $out
  checkPhase = ''
    PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -m unittest discover -s test
  '';

  meta = {<commit_msg>python.pkgs.backports_lzma: set to null conditionally<commit_after>{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, lzma
, python
, pythonOlder
}:

if !(pythonOlder "3.3") then null else buildPythonPackage rec {
  pname = "backports.lzma";
  version = "0.0.9";

  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "9ba5d94214a79900ee297a594b8e154cd8e4a54d26eb06243c0e2f3ad5286539";
  };

  buildInputs = [ lzma ];

  # Needs the compiled module in $out
  checkPhase = ''
    PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -m unittest discover -s test
  '';

  meta = {
{'fraction_non_alphanumeric': 0.11754537597234227, 'fraction_numerical': 0.0898876404494382, 'mean_word_length': 4.034782608695652, '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': '4227595', 'n_tokens_mistral': 515, 'n_tokens_neox': 461, 'n_words': 89}