Package Details: ntfy 2.7.0-4

Git Clone URL: https://aur.archlinux.org/ntfy.git (read-only, click to copy)
Package Base: ntfy
Description: A utility for sending push notifications to various notification systems (Pushover, Pushbullet, XMPP, etc.)
Upstream URL: https://github.com/dschep/ntfy
Keywords: notification pushbullet pushover xmpp
Licenses: GPL-3.0
Submitter: alphazo
Maintainer: adamperkowski
Last Packager: adamperkowski
Votes: 13
Popularity: 0.80
First Submitted: 2016-02-07 17:43 (UTC)
Last Updated: 2024-12-10 23:08 (UTC)

Dependencies (10)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

zbe commented on 2023-05-06 08:51 (UTC)

You know you can just add prepare() in PKGBUILD?

prepare() {
    cd "$srcdir/${pkgname}-${pkgver}"
    sed -i 's/getargspec/getfullargspec/' ntfy/__init__.py
}

aurelieng commented on 2023-05-06 07:26 (UTC) (edited on 2023-05-06 07:26 (UTC) by aurelieng)

Here's a shell script providing a quick workaround until the bug is solved upstream.

It:

  • downloads PKBUILD
  • download the source
  • and patch it
  • recompress it in a tarball
  • edit PKGBUILD with the proper source path (=the tarball) and the new md5sum
  • make the package and install it
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

wget -O PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=ntfy
pkgver="$(grep ^pkgver PKGBUILD | awk -F= '{print $2}')"
wget https://github.com/dschep/ntfy/archive/v$pkgver.tar.gz
tar axf v$pkgver.tar.gz
sed -i "s/getargspec/getfullargspec/g" ntfy-$pkgver/ntfy/__init__.py
tar czvf v$pkgver.tar.gz ntfy-$pkgver
MD5="$(md5sum "v$pkgver.tar.gz" | awk '{print $1}')"
sed \
    -i "s/md5sums=.*$/md5sums=('$MD5')/; s|https://github.com/dschep/ntfy/archive/||" \
    PKGBUILD

makepkg -i

qguv commented on 2023-05-04 08:35 (UTC)

Currently fails to build because ntfy is incompatible with python 3.11, see upstream issue.

$ yay -Sa ntfy
AUR Explicit (1): ntfy-2.7.0-2
:: PKGBUILD up to date, skipping download: ntfy
  1 ntfy                                     (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> a
:: Deleting (1/1): /home/qguv/.cache/yay/ntfy
HEAD is now at b2826c9fad68 Add python-setuptools to makedepends
warning: could not open directory 'pkg/': Permission denied
Removing pkg/
Removing src/
Removing v2.7.0.tar.gz
  1 ntfy                                     (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: ntfy 2.7.0-2 (Thu 04 May 2023 10:27:50 AM CEST)
==> Retrieving sources...
  -> Downloading v2.7.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1794k    0 1794k    0     0  3432k      0 --:--:-- --:--:-- --:--:-- 3432k
==> Validating source files with md5sums...
    v2.7.0.tar.gz ... Passed
:: (1/1) Parsing SRCINFO: ntfy
==> Making package: ntfy 2.7.0-2 (Thu 04 May 2023 10:27:51 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v2.7.0.tar.gz
==> Validating source files with md5sums...
    v2.7.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v2.7.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: ntfy 2.7.0-2 (Thu 04 May 2023 10:27:52 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Traceback (most recent call last):
  File "/home/qguv/.cache/yay/ntfy/src/ntfy-2.7.0/setup.py", line 5, in <module>
    from ntfy import __version__
  File "/home/qguv/.cache/yay/ntfy/src/ntfy-2.7.0/ntfy/__init__.py", line 6, in <module>
    from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (/usr/lib/python3.11/inspect.py)
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: ntfy-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
ntfy - exit status 4

qguv commented on 2023-03-23 10:57 (UTC)

Installing the python-emoji optional dependency breaks ntfy since python-emoji v2.0.0 was released, deprecating some kwargs.

miterion commented on 2021-06-14 12:09 (UTC)

Thanks for the notice rEnr3n should be fixed now

rEnr3n commented on 2021-06-06 06:53 (UTC)

This needs python-setuptools to compile.

uberben commented on 2020-05-06 17:46 (UTC) (edited on 2020-05-06 17:47 (UTC) by uberben)

I was getting the following error, but it was solved by uninstalling and reinstalling ntfy (did a clean build, not sure that was necessary).

pkg_resources.DistributionNotFound: The 'ntfy==2.7.0' distribution was not found and is required by the application

twiggers commented on 2018-05-16 12:05 (UTC)

It would be nice to add some optdepends, e.g.:

python-emoji: emoji support :fire:

TilmanV commented on 2017-01-10 14:10 (UTC)

python-ruamel.yaml is now part of the community repo under "python-ruamel-yaml". please change the deps. also package is out of date....

pmav99 commented on 2017-01-09 09:48 (UTC)

The package also depends on xorg-xprop https://github.com/dschep/ntfy/issues/130