2021-02-15 11:53:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-08-15 13:10:42 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-15 11:53:16 +00:00
|
|
|
, pythonOlder
|
|
|
|
, stdenv
|
|
|
|
, packaging
|
2022-09-16 16:07:08 +00:00
|
|
|
, setuptools
|
2021-02-15 11:53:16 +00:00
|
|
|
, importlib-resources
|
|
|
|
, dbus-next
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "desktop-notifier";
|
2022-11-22 13:20:48 +00:00
|
|
|
version = "3.4.2";
|
2022-03-27 13:16:34 +00:00
|
|
|
format = "pyproject";
|
2022-11-22 17:34:26 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-15 11:53:16 +00:00
|
|
|
|
2021-08-15 13:10:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SamSchott";
|
|
|
|
repo = pname;
|
2022-10-13 00:23:28 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-11-22 17:34:26 +00:00
|
|
|
hash = "sha256-OujBpq3SBDKw9Jgb9MD200Rp0fD0OJRw90flxS22I2s=";
|
2021-02-15 11:53:16 +00:00
|
|
|
};
|
|
|
|
|
2022-09-16 16:07:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-02-15 11:53:16 +00:00
|
|
|
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;
|
2022-11-22 17:34:26 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"desktop_notifier"
|
|
|
|
];
|
2021-02-15 11:53:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-11-22 17:34:26 +00:00
|
|
|
description = "Python library for cross-platform desktop notifications";
|
2021-02-15 11:53:16 +00:00
|
|
|
homepage = "https://github.com/samschott/desktop-notifier";
|
2022-11-22 17:34:26 +00:00
|
|
|
changelog = "https://github.com/samschott/desktop-notifier/releases/tag/v${version}";
|
2021-02-15 11:53:16 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sfrijters ];
|
2021-06-25 21:38:08 +00:00
|
|
|
platforms = platforms.linux;
|
2021-02-15 11:53:16 +00:00
|
|
|
};
|
|
|
|
}
|