<commit_before>{stdenv, fetchurl, ncurses, gettext, python3, makeWrapper }:

stdenv.mkDerivation rec {
  name = "calcurse-${version}";
  version = "4.2.2";

  src = fetchurl {
    url = "http://calcurse.org/files/${name}.tar.gz";
    sha256 = "0il0y06akdqgy0f9p40m4x6arn66nh7sr1w1i41bszycs7div266";
  };

  buildInputs = [ncurses gettext python3 ];
  nativeBuildInputs = [ makeWrapper ];

  postInstall = ''
    makeWrapper ${python3}/bin/python3 $out/bin/calcurse-caldav 
      '';
<commit_msg> calcurse: 4.2.0 -> 4.3.0  (#33036)<commit_after>{ stdenv, fetchurl, ncurses, gettext, python3, python3Packages, makeWrapper }:

stdenv.mkDerivation rec {
  name = "calcurse-${version}";
  version = "4.3.0";

  src = fetchurl {
    url = "http://calcurse.org/files/${name}.tar.gz";
    sha256 = "16jzg0nasnxdlz23i121x41pq5kbxmjzk52c5d863rg117fc7v1i";
  };

  buildInputs = [ ncurses gettext python3 ];
  nativeBuildInputs = [ makeWrapper ];

  # Build Python environment with httplib2 for calcurse-caldav
  pythonEnv = python3Packages.python.buildEnv.override {
    extraLibs = [ python3Packages.httplib2 ];
  };
  propogatedBuildInputs = [ pythonEnv ];

  postInstall = ''
    substituteInPlace $out/bin/calcurse-caldav --replace /usr/bin/python3 ${pythonEnv}/bin/python3
  '';

{'fraction_non_alphanumeric': 0.141287284144427, 'fraction_numerical': 0.06200941915227629, 'mean_word_length': 4.019685039370079, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6805062', 'n_tokens_mistral': 527, 'n_tokens_neox': 492, 'n_words': 77}