8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
43 lines
989 B
Nix
43 lines
989 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, stdenv
|
|
, packaging
|
|
, importlib-resources
|
|
, dbus-next
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "desktop-notifier";
|
|
version = "3.3.5";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SamSchott";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-tXvA1EddTrOcTupQqZrX58jXiAqB5gMJP+OE3fZxGJI=";
|
|
};
|
|
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|