Files
nixpkgs/pkgs/development/python-modules/desktop-notifier/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

49 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
setuptools,
bidict,
packaging,
typing-extensions,
dbus-fast,
rubicon-objc,
}:
buildPythonPackage rec {
pname = "desktop-notifier";
version = "6.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "SamSchott";
repo = "desktop-notifier";
tag = "v${version}";
hash = "sha256-VVbBKhGCtdsNOfRJPpDk9wwsTtdEwbTSZjheXLydO70=";
};
build-system = [ setuptools ];
dependencies = [
bidict
packaging
typing-extensions
]
++ lib.optionals stdenv.hostPlatform.isLinux [ dbus-fast ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ rubicon-objc ];
# no tests available, do the imports check instead
doCheck = false;
pythonImportsCheck = [ "desktop_notifier" ];
meta = {
description = "Python library for cross-platform desktop notifications";
homepage = "https://github.com/samschott/desktop-notifier";
changelog = "https://github.com/samschott/desktop-notifier/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sfrijters ];
};
}