Package Details: py-cidr 3.13.0-1

Git Clone URL: https://aur.archlinux.org/py-cidr.git (read-only, click to copy)
Package Base: py-cidr
Description: python module providing network / CIDR tools
Upstream URL: https://github.com/gene-git/py-cidr
Licenses: GPL-2.0-or-later
Submitter: GeneArch
Maintainer: GeneArch
Last Packager: GeneArch
Votes: 2
Popularity: 0.000033
First Submitted: 2025-01-18 19:17 (UTC)
Last Updated: 2026-03-11 19:58 (UTC)

Dependencies (9)

Sources (1)

Pinned Comments

GeneArch commented on 2026-06-14 20:57 (UTC)

As both the packager and upstream author I'd like to encourage all users to activate "git source verification" if not already done. Please see comment in the PKGBUILD file. The recent supply chain issues highlight the importance of validating source code.

All git tags are signed and going forward, every commit will also be signed.

The public signing key is available in a few places, but I recommend getting it either via WKD or directly from the website of the key's email domain. These are sound ways to do this. For additional information please see:

https://sapience.com/tech/blog/git-keys

To get the key via WKD:

gpg --auto-key-locate nodefault,wkd --locate-external-keys arch@sapience.com

Latest Comments

1 2 Next › Last »

GeneArch commented on 2026-06-14 20:57 (UTC)

As both the packager and upstream author I'd like to encourage all users to activate "git source verification" if not already done. Please see comment in the PKGBUILD file. The recent supply chain issues highlight the importance of validating source code.

All git tags are signed and going forward, every commit will also be signed.

The public signing key is available in a few places, but I recommend getting it either via WKD or directly from the website of the key's email domain. These are sound ways to do this. For additional information please see:

https://sapience.com/tech/blog/git-keys

To get the key via WKD:

gpg --auto-key-locate nodefault,wkd --locate-external-keys arch@sapience.com

GeneArch commented on 2026-01-12 14:20 (UTC)

Terrific @simona

simona commented on 2026-01-12 14:16 (UTC)

solved

GeneArch commented on 2026-01-12 11:59 (UTC) (edited on 2026-01-12 12:20 (UTC) by GeneArch)

Hi @simona - sorry you're having trouble building the package. This seems to be failing due to missing a module. After python was updated to 3.14 all python packages need to be rebuilt.

Can you please rebuild / reinstall the pynotify package (and any other AUR python package) and see if that fixes it for you..

simona commented on 2026-01-12 11:45 (UTC)

ImportError while importing test module '/home/simona/.cache/yay/py-cidr/src/py-cidr/tests/test_cache_file.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.14/importlib/init.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test_cache_file.py:7: in <module>
from py_cidr import IPvxNetwork
py_cidr/init.py:19: in <module>
from .cidr_map import CidrMap
py_cidr/cidr_map.py:14: in <module>
from ._cidr_cache import (CidrCache)
py_cidr/_cidr_cache.py:23: in <module>
from lockmgr import LockMgr
/usr/lib/python3.14/site-packages/lockmgr/init.py:4: in <module>
from .class_lock import LockMgr
/usr/lib/python3.14/site-packages/lockmgr/class_lock.py:10: in <module>
from pynotify import Inotify, InotifyMask
E   ModuleNotFoundError: No module named 'pynotify'

――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting test_cidr_map.py ―――――――――――――――――――――――――――――――――――――――――――――― ImportError while importing test module '/home/simona/.cache/yay/py-cidr/src/py-cidr/tests/test_cidr_map.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.14/importlib/init.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ test_cidr_map.py:8: in <module> from py_cidr import CidrMap py_cidr/init.py:19: in <module> from .cidr_map import CidrMap py_cidr/cidr_map.py:14: in <module> from ._cidr_cache import (CidrCache) py_cidr/_cidr_cache.py:23: in <module> from lockmgr import LockMgr /usr/lib/python3.14/site-packages/lockmgr/init.py:4: in <module> from .class_lock import LockMgr /usr/lib/python3.14/site-packages/lockmgr/class_lock.py:10: in <module> from pynotify import Inotify, InotifyMask E ModuleNotFoundError: No module named 'pynotify' collected 6 items / 2 errors

================================================== short test summary info =================================================== FAILED test_cache_file.py FAILED test_cidr_map.py </ode>

GeneArch commented on 2025-07-17 09:52 (UTC)

@piater - so sorry about that and thanks for letting me know. The getlogin line was accidentally left instead of being deleted. Should be fixed in 3.7.0

piater commented on 2025-07-17 07:47 (UTC)

The os.getlogin() error during check() is back despite an apparent attempt in the code to work around it:

        user = _get_lock_user()

        if user:
>           user = os.getlogin()
                   ^^^^^^^^^^^^^
E           OSError: [Errno -25] Unknown error -25

GeneArch commented on 2025-05-20 23:05 (UTC)

@piater thanks for letting me know - good catch. Should be fixed in 3.4.0. Let me know if you have any further issues.

piater commented on 2025-05-20 20:16 (UTC)

When building in a clean chroot (I guess this triggers the problem), check() fails because one test contains a os.getlogin() that throws an exception. Presumably his test should be rewritten to e.g. use the tempfile module instead.

GeneArch commented on 2025-05-19 09:29 (UTC)

Fixed in 3.2.2 - thank you for letting me know @reylak