Files
nixpkgs/pkgs/development/python-modules/apprise/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

84 lines
1.6 KiB
Nix

{
lib,
apprise,
babel,
buildPythonPackage,
click,
cryptography,
fetchPypi,
gntp,
installShellFiles,
markdown,
paho-mqtt,
pytest-mock,
pytestCheckHook,
pyyaml,
requests,
requests-oauthlib,
setuptools,
stdenv,
terminal-notifier,
testers,
}:
buildPythonPackage rec {
pname = "apprise";
version = "1.9.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Qga+nLVpSj0I3Y4Dk7u5s2ISrDp3acJjNiAFXnXGyu8=";
};
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace apprise/plugins/macosx.py \
--replace-fail "/opt/homebrew/bin/terminal-notifier" "${lib.getExe' terminal-notifier "terminal-notifier"}"
'';
nativeBuildInputs = [ installShellFiles ];
build-system = [
babel
setuptools
];
dependencies = [
click
cryptography
markdown
pyyaml
requests
requests-oauthlib
];
nativeCheckInputs = [
gntp
paho-mqtt
pytest-mock
pytestCheckHook
];
postInstall = ''
installManPage packaging/man/apprise.1
'';
pythonImportsCheck = [ "apprise" ];
passthru = {
tests.version = testers.testVersion {
package = apprise;
version = "v${version}";
};
};
meta = {
description = "Push Notifications that work with just about every platform";
homepage = "https://github.com/caronc/apprise";
changelog = "https://github.com/caronc/apprise/releases/tag/v${version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "apprise";
};
}