2021-02-15 11:53:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, stdenv
|
|
|
|
, packaging
|
|
|
|
, importlib-resources
|
|
|
|
, dbus-next
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "desktop-notifier";
|
2021-03-02 06:48:13 +00:00
|
|
|
version = "3.2.3";
|
2021-02-15 11:53:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-02 06:48:13 +00:00
|
|
|
sha256 = "cf359450efc0944ac4db3106e50faa9d49dcef072307c3531e6af2c8a10cd523";
|
2021-02-15 11:53:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
dbus-next
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests available, do the imports check instead
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "desktop_notifier" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/samschott/desktop-notifier";
|
|
|
|
description = "A Python library for cross-platform desktop notifications";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sfrijters ];
|
|
|
|
};
|
|
|
|
}
|