<commit_before>{ stdenv, python36Packages, fetchFromGitHub, pywal, feh, libxslt, imagemagick,
  gobject-introspection, gtk3, wrapGAppsHook, gnome3 }:

python36Packages.buildPythonApplication rec {
  pname = "wpgtk";
  version = "5.7.4";

  src = fetchFromGitHub {
    owner = "deviantfero";
    repo = "wpgtk";
    rev = "${version}";
    sha256 = "0c0kmc18lbr7nk3hh44hai9z06lfsgwxnjdv02hpjwrxg40zh726";
  };

  pythonPath = [
    python36Packages.pygobject3
    python36Packages.pillow
    pywal
    imagemagick
  ];

  buildInputs = [
    wrapGAppsHook
    gtk3
    gobject-introspection
    gnome3.adwaita-icon-theme
    libxslt
  ];

  # The $HOME variable must be set to build the package. A "permission denied" error will occur otherwise
  preBuild = ''
      export HOME=$(pwd)
  '';<commit_msg>wpgtk: use python37 and fix dependency on pywal<commit_after>{ stdenv, python3Packages, fetchFromGitHub, feh, libxslt,
  gobject-introspection, gtk3, wrapGAppsHook, gnome3 }:

python3Packages.buildPythonApplication rec {
  pname = "wpgtk";
  version = "5.7.4";

  src = fetchFromGitHub {
    owner = "deviantfero";
    repo = "wpgtk";
    rev = "${version}";
    sha256 = "0c0kmc18lbr7nk3hh44hai9z06lfsgwxnjdv02hpjwrxg40zh726";
  };

  buildInputs = [
    wrapGAppsHook
    gtk3
    gobject-introspection
    gnome3.adwaita-icon-theme
    libxslt
  ];

  propagatedBuildInputs = with python3Packages; [
    pygobject3
    pillow
    pywal
  ];

  # The $HOME variable must be set to build the package. A "permission denied" error will occur otherwise
  preBuild = ''
      export HOME=$(pwd)
  '';

  # No test exist
  doCheck = false;
{'fraction_non_alphanumeric': 0.09957238851557727, 'fraction_numerical': 0.04337202199144777, 'mean_word_length': 3.463215258855586, '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': '3496030', 'n_tokens_mistral': 662, 'n_tokens_neox': 603, 'n_words': 129}