aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/notify-py/default.nix
blob: fc2eda47bebac35e78c831e85cd0f09b3038cd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, buildPythonPackage, fetchPypi, isPy3k, alsaUtils, libnotify, which, loguru, pytest }:

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

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1i209xsff54hipdk9cg6va60fl33swg126yfgkg3wsgjmi6s07ca";
  };

  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 ];
  };
}