bb5b50588c
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
38 lines
847 B
Nix
38 lines
847 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, stdenv
|
|
, packaging
|
|
, importlib-resources
|
|
, dbus-next
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "desktop-notifier";
|
|
version = "3.2.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-D8/amC6SwXkm8Ao8G2Vn9FNpbqyFJFBUVcngkW5g8k0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|