Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
bidict,
packaging,
typing-extensions,
dbus-fast,
rubicon-objc,
}:
buildPythonPackage rec {
pname = "desktop-notifier";
version = "6.2.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "SamSchott";
repo = "desktop-notifier";
tag = "v${version}";
hash = "sha256-VVbBKhGCtdsNOfRJPpDk9wwsTtdEwbTSZjheXLydO70=";
};
build-system = [ setuptools ];
dependencies = [
bidict
packaging
typing-extensions
]
++ lib.optionals stdenv.hostPlatform.isLinux [ dbus-fast ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ rubicon-objc ];
# no tests available, do the imports check instead
doCheck = false;
pythonImportsCheck = [ "desktop_notifier" ];
meta = {
description = "Python library for cross-platform desktop notifications";
homepage = "https://github.com/samschott/desktop-notifier";
changelog = "https://github.com/samschott/desktop-notifier/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sfrijters ];
};
}