2020-10-05 05:29:27 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, alsaUtils, libnotify, which, loguru, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "notify_py";
|
2020-11-04 14:04:23 +00:00
|
|
|
version = "0.2.4";
|
2020-10-05 05:29:27 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:23 +00:00
|
|
|
sha256 = "2a19273a476c8b003baa96650d00a81c5981c3a17ada748bc0a73aefad46d977";
|
2020-10-05 05:29:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|