39 lines
860 B
Nix
39 lines
860 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, stdenv
|
|
, packaging
|
|
, importlib-resources
|
|
, dbus-next
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "desktop-notifier";
|
|
version = "3.2.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "cf359450efc0944ac4db3106e50faa9d49dcef072307c3531e6af2c8a10cd523";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|