mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
stdenv,
|
|
packaging,
|
|
setuptools,
|
|
dbus-next,
|
|
rubicon-objc,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "desktop-notifier";
|
|
version = "5.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SamSchott";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-A+25T0xgUcE1NaOKNZgeP80VlEmqa137YGn3g/pwpxM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies =
|
|
[ packaging ]
|
|
++ lib.optionals stdenv.isLinux [ dbus-next ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ rubicon-objc ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|