<commit_before>{ lib, buildPythonPackage, fetchPypi, isPy3k, alsaUtils, libnotify, which, loguru, pytest }:

buildPythonPackage rec {
  pname = "notify_py";
  version = "0.2.4";

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "2a19273a476c8b003baa96650d00a81c5981c3a17ada748bc0a73aefad46d977";
  };

  postPatch = ''
   substituteInPlace setup.py \
     --replace "loguru==0.4.1" "loguru~=0.5.0"
  '';

  propagatedBuildInputs = [ alsaUtils libnotify loguru which ];

  checkInputs = [ alsaUtils libnotify pytest which ];

  checkPhase = ''
    pytest
  '';

  pythonImportsCheck = [ "notifypy" ];

  meta = with lib; {
    description = " Python Module for sending cross-platform desktop notifications on Windows, macOS, and Linux.";
    homepage = "https://github.com/ms7m/notify-py/";
    license = licenses.mit;
    maintainers = with maintainers; [ austinbutler ];
  };<commit_msg>python3Packages.notify_py: 0.2.4 -> 0.3.1<commit_after>{ lib, buildPythonPackage, fetchPypi, isPy3k, alsaUtils, libnotify, which, loguru, pytest }:

buildPythonPackage rec {
  pname = "notify_py";
  version = "0.3.1";

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "5ba696d18ffe1d7070f3d0a5b4923fee4d6c863de6843af105bec0ce9915ebad";
  };

  postPatch = ''
   substituteInPlace setup.py \
     --replace "loguru==0.4.1" "loguru~=0.5.0"
  '';

  propagatedBuildInputs = [ alsaUtils libnotify loguru which ];

  checkInputs = [ alsaUtils libnotify pytest which ];

  checkPhase = ''
    pytest
  '';

  pythonImportsCheck = [ "notifypy" ];

  meta = with lib; {
    description = " Python Module for sending cross-platform desktop notifications on Windows, macOS, and Linux.";
    homepage = "https://github.com/ms7m/notify-py/";
    license = licenses.mit;
    maintainers = with maintainers; [ austinbutler ];
  };
{'fraction_non_alphanumeric': 0.12393162393162394, 'fraction_numerical': 0.05982905982905983, 'mean_word_length': 3.6592039800995027, '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': '4328349', 'n_tokens_mistral': 731, 'n_tokens_neox': 672, 'n_words': 140}