<commit_before>{ stdenv, fetchFromGitHub, buildPythonPackage,
  pexpect,
  pyGtkGlade,
  pygobject,
  pyxdg,
  gnome_python,
  libappindicator-gtk2,
  xflux,
  python
}:
buildPythonPackage rec {
  name = "xflux-gui-${version}";
  version = "2016-08-08";

  src = fetchFromGitHub {
    repo = "xflux-gui";
    owner = "xflux-gui";
    rev = "4125e70b6ad0aeda7de46b3a7083a26c392555dc";
    sha256 = "1l56f59hnjyi7nn8wn3dfdx6lw2qjbrhdlcfz0qvwj6b0953f2s7";
  };

  # not sure if these need to be propagated or not?
  propagatedBuildInputs = [
    pexpect
    pyGtkGlade
    pygobject
    pyxdg
    libappindicator-gtk2
    gnome_python
  ];

  buildInputs = [
    xflux
  ];

  postPatch = ''
     substituteInPlace src/fluxgui/xfluxcontroller.py --replace "pexpect.spawn(\"xflux\"" "pexpect.spawn(\"${xflux}/bin/xflux\""
  '';

  postFixup = ''
    wrapPythonPrograms
    patchPythonScript $out/${python.sitePackages}/fluxgui/fluxapp.py
  '';

  meta = {
    description = "Better lighting for Linux. Open source GUI for xflux";
    homepage = https://justgetflux.com/linux.html;
    license = stdenv.lib.licenses.unfree; # marked as unfree since the source code contains a copy of the unfree xflux binary
    maintainers = [ stdenv.lib.maintainers.sheenobu ];
    platforms = stdenv.lib.platforms.linux;
  };
}<commit_msg>xflux-gui: 2016-08-08 -> 2016-09-21, fix icon display<commit_after>{ stdenv, fetchFromGitHub, buildPythonPackage
, pexpect, pyGtkGlade, pygobject, pyxdg
, gnome_python, python
, libappindicator-gtk2, xflux, librsvg, wrapGAppsHook
}:
buildPythonPackage rec {
  name = "xflux-gui-${version}";
  version = "2016-09-21";

  src = fetchFromGitHub {
    repo = "xflux-gui";
    owner = "xflux-gui";
    rev = "0b56204477494b473a390e8b0db043437ec14f32";
    sha256 = "15pr8f31jnhqjlpvasnj6cmm6hw5gljphh2pxzav3zd9bp4yl56r";
  };

  # not sure if these need to be propagated or not?
  propagatedBuildInputs = [
    pexpect
    pyGtkGlade
    pygobject
    pyxdg
    libappindicator-gtk2
    gnome_python
  ];

  buildInputs = [ xflux librsvg ];

  nativeBuildInputs = [ wrapGAppsHook ];

  postPatch = ''
     substituteInPlace src/fluxgui/xfluxcontroller.py --replace "pexpect.spawn(\"xflux\"" "pexpect.spawn(\"${xflux}/bin/xflux\""
  '';

  postFixup = ''
    wrapGAppsHook
    makeWrapperArgs="''${gappsWrapperArgs[@]}"
    wrapPythonPrograms
    patchPythonScript $out/${python.sitePackages}/fluxgui/fluxapp.py
  '';

  meta = {
    description = "Better lighting for Linux. Open source GUI for xflux";
    homepage = https://justgetflux.com/linux.html;
    license = stdenv.lib.licenses.unfree; # marked as unfree since the source code contains a copy of the unfree xflux binary
    maintainers = [ stdenv.lib.maintainers.sheenobu ];
    platforms = stdenv.lib.platforms.linux;
  };
}
{'fraction_non_alphanumeric': 0.11571428571428571, 'fraction_numerical': 0.045714285714285714, 'mean_word_length': 3.614497528830313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '791133', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1037, 'n_words': 194}