<commit_before>{ stdenv, fetchFromGitHub
, python3Packages
}:

stdenv.mkDerivation rec {
  name = "ibus-uniemoji-${version}";
  version = "0.6.0";

  src = fetchFromGitHub {
    owner = "salty-horse";
    repo = "ibus-uniemoji";
    rev = "v${version}";
    sha256 = "121zh3q0li1k537fcvbd4ns4jgl9bbb9gm9ihy8cfxgirv38lcfa";
  };

  propagatedBuildInputs = with python3Packages; [ pyxdg python-Levenshtein ];

  nativeBuildInputs = [ python3Packages.wrapPython ];

  postFixup = ''
    buildPythonPath $out
    patchPythonScript $out/share/ibus-uniemoji/uniemoji.py
  '';

  makeFlags = [ "PREFIX=$(out)" "SYSCONFDIR=$(out)/etc"
                "PYTHON=${python3Packages.python.interpreter}"
              ];

  meta = with stdenv.lib; {
    isIbusEngine = true;<commit_msg>ibus-engines.uniemoji: add pygobject3 as a dependency<commit_after>{ stdenv, fetchFromGitHub
, python3Packages
}:

stdenv.mkDerivation rec {
  name = "ibus-uniemoji-${version}";
  version = "0.6.0";

  src = fetchFromGitHub {
    owner = "salty-horse";
    repo = "ibus-uniemoji";
    rev = "v${version}";
    sha256 = "121zh3q0li1k537fcvbd4ns4jgl9bbb9gm9ihy8cfxgirv38lcfa";
  };

  propagatedBuildInputs = with python3Packages; [ pyxdg python-Levenshtein pygobject3 ];

  nativeBuildInputs = [ python3Packages.wrapPython ];

  postFixup = ''
    buildPythonPath $out
    patchPythonScript $out/share/ibus-uniemoji/uniemoji.py
  '';

  makeFlags = [ "PREFIX=$(out)" "SYSCONFDIR=$(out)/etc"
                "PYTHON=${python3Packages.python.interpreter}"
              ];

  meta = with stdenv.lib; {
    isIbusEngine = true;
{'fraction_non_alphanumeric': 0.1335423197492163, 'fraction_numerical': 0.03510971786833856, 'mean_word_length': 3.5730659025787967, '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': '3434837', 'n_tokens_mistral': 642, 'n_tokens_neox': 606, 'n_words': 87}