<commit_before>{ mkDerivation, lib, extra-cmake-modules, python3 }:

mkDerivation {
  pname = "kapidox";
  nativeBuildInputs = [ extra-cmake-modules python3 python3.pkgs.setuptools ];
  postFixup = ''
    moveToOutput bin $bin
  '';<commit_msg>kapidox: fix build with python packages<commit_after>{ mkDerivation, python3, qtbase }:

mkDerivation {
  pname = "kapidox";
  buildInputs = with python3.pkgs; [ jinja2 pyyaml requests ];
  nativeBuildInputs = with python3.pkgs; [ qtbase setuptools ];

  patchPhase = ''
    sed -i -e 's|"doxy\w\+", ||g' setup.py
  '';

  buildPhase = ''
    runHook preBuild
    ${python3.interpreter} setup.py build
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    ${python3.interpreter} setup.py install --prefix="$out"
    runHook postInstall
  '';

  outputs = [ "out" ];
{'fraction_non_alphanumeric': 0.13357400722021662, 'fraction_numerical': 0.010830324909747292, 'mean_word_length': 3.64804469273743, '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': '526165', 'n_tokens_mistral': 293, 'n_tokens_neox': 292, 'n_words': 65}