depot/third_party/nixpkgs/pkgs/development/python-modules/desktop-notifier/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

50 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, stdenv
, packaging
, setuptools
, dbus-next
}:
buildPythonPackage rec {
pname = "desktop-notifier";
version = "3.5.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "SamSchott";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-txUWRCWLQ6jWrdEJ/D5+CsflNad5Onr/wLycENri1z8=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
packaging
] ++ 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;
};
}