<commit_before>{ stdenv, python, buildPythonApplication, fetchurl, urlgrabber }:

buildPythonApplication rec {
  pname = "pykickstart";
  version = "1.99.39";
  md5_path = "d249f60aa89b1b4facd63f776925116d";

  src = fetchurl {
    url = "https://src.fedoraproject.org/repo/pkgs/pykickstart/"
        + "${pname}-${version}.tar.gz/${md5_path}/${pname}-${version}.tar.gz";
    sha256 = "e0d0f98ac4c5607e6a48d5c1fba2d50cc804de1081043f9da68cbfc69cad957a";
  };

  postPatch = ''
    sed -i -e "s/for tst in tstList/for tst in sorted(tstList, \
               key=lambda m: m.__name__)/" tests/baseclass.py
  '';

  propagatedBuildInputs = [ urlgrabber ];

  checkPhase = ''
    export PYTHONPATH="$PYTHONPATH:."
    ${python}/bin/${python.executable} tests/baseclass.py -vv
  '';

  meta = {
    homepage = http://fedoraproject.org/wiki/Pykickstart;
    description = "Read and write Fedora kickstart files";
    license = stdenv.lib.licenses.gpl2Plus;
  };<commit_msg>nixpart0: remove broken, fix build for (local) pykickstart dep<commit_after>{ stdenv, python, buildPythonApplication, fetchurl, urlgrabber }:

buildPythonApplication rec {
  pname = "pykickstart";
  version = "1.99.39";
  md5_path = "d249f60aa89b1b4facd63f776925116d";

  src = fetchurl {
    url = "https://src.fedoraproject.org/repo/pkgs/pykickstart/"
        + "${pname}-${version}.tar.gz/${md5_path}/${pname}-${version}.tar.gz";
    sha256 = "e0d0f98ac4c5607e6a48d5c1fba2d50cc804de1081043f9da68cbfc69cad957a";
  };

  postPatch = ''
    sed -i -e "s/for tst in tstList/for tst in sorted(tstList, \
               key=lambda m: m.__name__)/" tests/baseclass.py
  '';

  propagatedBuildInputs = [ urlgrabber ];

  checkPhase = ''
    ${python}/bin/${python.executable} tests/baseclass.py -vv
  '';

  meta = {
    homepage = http://fedoraproject.org/wiki/Pykickstart;
    description = "Read and write Fedora kickstart files";
    license = stdenv.lib.licenses.gpl2Plus;
  };
{'fraction_non_alphanumeric': 0.14616572310859496, 'fraction_numerical': 0.06845084920226453, 'mean_word_length': 3.6285714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1685876', 'n_tokens_mistral': 826, 'n_tokens_neox': 753, 'n_words': 118}