Debian Patches

Status for python-py-ecc/8.0.0-1

Patch Description Author Forwarded Bugs Origin Last update
inject-debian-version-into-auto-version.patch Change auto version before build to use Debian version
During Debian packaging, this call to `__version("py_ecc")` fails
because the package metadata is not available in the build environment.
Replace this instead with `@DEB_VERSION@` which will at build time be
replaced with the Debian version by debian/rules.
Manuel Guerra <ar.manuelguerra@gmail.com> not-needed 2025-09-18
Mock-eth_abi-for-Sphinx-autodoc.patch Mock `eth_abi` for Sphinx autodoc
Mock the import to allow Sphinx to generate documentation stubs for
`eth_abi` without requiring the actual package to be installed, ensuring
the documentation is complete and does not emit warnings like:

ModuleNotFoundError: No module named 'eth_abi'

This does not need to upstreamed as the upstream builds likely have
access to all possible modules.
=?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <otto@debian.org> not-needed 2025-09-18
Ensure-py_ecc-modules-are-discoverable-by-Sphinx-autodoc.patch Ensure `py_ecc` modules are discoverable by Sphinx autodoc
Explicitly define the project's root directory to ensure Sphinx will
correctly import `py_ecc` modules for API documentation, eliminating
build warnings such as:

WARNING: autodoc: failed to import module 'bls.ciphersuites' from module 'py_ecc'; the following exception was raised:
['Traceback (most recent call last):\n', ' File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line 269, in import_object\n module = import_module(modname, try_reload=True)\n', ' File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line 172, in import_module\n raise ModuleNotFoundError(msg, name=modname) # NoQA: TRY301\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', "ModuleNotFoundError: No module named 'py_ecc'\n"] [autodoc.import_object]
WARNING: autodoc: failed to import module 'bls.constants' from module 'py_ecc'; the following exception was raised:
['Traceback (most recent call last):\n', ' File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line 269, in import_object\n module = import_module(modname, try_reload=True)\n', ' File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line 172, in import_module\n raise ModuleNotFoundError(msg, name=modname) # NoQA: TRY301\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', "ModuleNotFoundError: No module named 'py_ecc'\n"] [autodoc.import_object]
WARNING: autodoc: failed to import module 'bls.g2_primitives' from module 'py_ecc'; the following exception was raised:
['Traceback (most recent call last):\n', ' File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line 269, in import_object\n module = import_module(modname, try_reload=True)\n', ' File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line 172, in import_module\n raise ModuleNotFoundError(msg, name=modname) # NoQA: TRY301\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', "ModuleNotFoundError: No module named 'py_ecc'\n"] [autodoc.import_object]
...

Additionally, correct the `DIR` variable assignment to not use quotes
but to evaluate the `__file__` variable.
=?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <otto@debian.org> no 2025-09-18
Disable-intersphinx-to-prevent-network-access-during-buil.patch Force intersphinx to use local file instead of network
Debian package builds must be reproducible and isolated from external
network access, so prevent the `sphinx.ext.intersphinx` extension from
doing network requests to `docs.python.org` during the documentation
build process.

This fixes the warning seen during the build:

intersphinx inventory 'https://docs.python.org/3.10/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3.10/objects.inv (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fda772e97f0>: Failed to resolve 'docs.python.org' ([Errno -3] Temporary failure in name resolution)"))

This does not need to be forwarded as upstream builds likely want to
fetch latest links database over the network on every build.
=?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <otto@debian.org> not-needed 2025-09-18

All known versions for source package 'python-py-ecc'

Links