mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, stdenv
|
|
, packaging
|
|
, setuptools
|
|
, importlib-resources
|
|
, dbus-next
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "desktop-notifier";
|
|
version = "3.4.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SamSchott";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-V5CggWp9G0/XoQhArrY3LCvfkF2SymORDWdJGjsr7yI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
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; {
|
|
description = "Python library for cross-platform desktop notifications";
|
|
homepage = "https://github.com/samschott/desktop-notifier";
|
|
changelog = "https://github.com/samschott/desktop-notifier/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sfrijters ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|