<commit_before>{ lib, python3 }:

python3.pkgs.buildPythonApplication rec {
  pname = "flashfocus";
  version = "2.2.3";

  src = python3.pkgs.fetchPypi {
    inherit pname version;
    sha256 = "0cn44hryvz2wl7xklaslxsb3l2i3f8jkgmml0n9v2ks22j5l4r4h";
  };

  nativeBuildInputs = with python3.pkgs; [
    pytest-runner
  ];

  propagatedBuildInputs = with python3.pkgs; [
    i3ipc
    xcffib
    click
    cffi
    xpybutil
    marshmallow
    pyyaml
  ];

  # Tests require access to a X session
  doCheck = false;

  pythonImportsCheck = [ "flashfocus" ];

  meta = with lib; {
    homepage = "https://github.com/fennerm/flashfocus";
    description = "Simple focus animations for tiling window managers";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ artturin ];
  };<commit_msg>flashfocus: unpin pyyaml<commit_after>{ lib, python3 }:

python3.pkgs.buildPythonApplication rec {
  pname = "flashfocus";
  version = "2.2.3";

  src = python3.pkgs.fetchPypi {
    inherit pname version;
    sha256 = "0cn44hryvz2wl7xklaslxsb3l2i3f8jkgmml0n9v2ks22j5l4r4h";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "pyyaml>=5.1,<6.0" "pyyaml>=5.1"
  '';

  nativeBuildInputs = with python3.pkgs; [
    pytest-runner
  ];

  propagatedBuildInputs = with python3.pkgs; [
    i3ipc
    xcffib
    click
    cffi
    xpybutil
    marshmallow
    pyyaml
  ];

  # Tests require access to a X session
  doCheck = false;

  pythonImportsCheck = [ "flashfocus" ];

  meta = with lib; {
    homepage = "https://github.com/fennerm/flashfocus";
    description = "Simple focus animations for tiling window managers";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ artturin ];
  };
{'fraction_non_alphanumeric': 0.10632344711807498, 'fraction_numerical': 0.03581421376608842, 'mean_word_length': 3.1293302540415704, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '5979848', 'n_tokens_mistral': 679, 'n_tokens_neox': 657, 'n_words': 132}