parabolic: 2024.5.0 -> 2025.1.4 (#378350)
[NixPkgs.git] / pkgs / development / python-modules / desktop-notifier / default.nix
blobbe377210b9fd63c4dfec277b03b180fc2fb49196
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   stdenv,
7   bidict,
8   packaging,
9   setuptools,
10   dbus-fast,
11   rubicon-objc,
14 buildPythonPackage rec {
15   pname = "desktop-notifier";
16   version = "6.0.0";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "SamSchott";
23     repo = "desktop-notifier";
24     tag = "v${version}";
25     hash = "sha256-HynREkiPxv/1y1/ICVwqANIe9tAkIvdpDy4oXxQarec=";
26   };
28   build-system = [ setuptools ];
30   dependencies =
31     [
32       bidict
33       packaging
34     ]
35     ++ lib.optionals stdenv.hostPlatform.isLinux [ dbus-fast ]
36     ++ lib.optionals stdenv.hostPlatform.isDarwin [ rubicon-objc ];
38   # no tests available, do the imports check instead
39   doCheck = false;
41   pythonImportsCheck = [ "desktop_notifier" ];
43   meta = with lib; {
44     description = "Python library for cross-platform desktop notifications";
45     homepage = "https://github.com/samschott/desktop-notifier";
46     changelog = "https://github.com/samschott/desktop-notifier/releases/tag/v${version}";
47     license = licenses.mit;
48     maintainers = with maintainers; [ sfrijters ];
49   };