Package Details: python-asn1tools 0.156.0-2

Git Clone URL: (read-only, click to copy)
Package Base: python-asn1tools
Description: A Python package for ASN.1 parsing, encoding and decoding
Upstream URL:
Licenses: MIT
Submitter: hurufu
Maintainer: hurufu
Last Packager: hurufu
Votes: 0
Popularity: 0.000000
First Submitted: 2021-02-12 18:15 (UTC)
Last Updated: 2023-01-10 18:35 (UTC)

Latest Comments

dreieck commented on 2023-05-07 17:23 (UTC)

python-bitstruct needs to be added as a dependency:

Traceback (most recent call last):
  File "/usr/bin/ardpscan", line 5, in <module>
    from aardwolf.examples.scanners.__main__ import main
  File "/usr/lib/python3.11/site-packages/aardwolf/examples/scanners/", line 4, in <module>
    from aardwolf.commons.factory import RDPConnectionFactory
  File "/usr/lib/python3.11/site-packages/aardwolf/commons/", line 8, in <module>
    from aardwolf.connection import RDPConnection
  File "/usr/lib/python3.11/site-packages/aardwolf/", line 10, in <module>
    import asn1tools
  File "/usr/lib/python3.11/site-packages/asn1tools/", line 18, in <module>
    from .compiler import compile_dict
  File "/usr/lib/python3.11/site-packages/asn1tools/", line 10, in <module>
    from .codecs import compiler
  File "/usr/lib/python3.11/site-packages/asn1tools/codecs/", line 6, in <module>
    import bitstruct
ModuleNotFoundError: No module named 'bitstruct'

Thanks for maintaining!

dreieck commented on 2023-05-07 16:47 (UTC)

Applying the patch fails for me:

==> Starting prepare()...
/home/felics/.cache/yay/python-asn1tools/PKGBUILD: line 32: ../00-handle-odd-numbered-hex-strings.patch: No such file or directory
==> ERROR: A failure occurred in prepare().

Changing the patch line solves it:

patch -p1 -d asn1tools-$pkgver < "${srcdir}/00-handle-odd-numbered-hex-strings.patch"

dreieck commented on 2023-05-07 16:47 (UTC)

I think you should switch to using python -m build and python -m installer instead of invoking directly:

/usr/lib/python3.11/site-packages/setuptools/_distutils/ SetuptoolsDeprecationWarning: install is deprecated.

        Please avoid running ```` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See for details.


e.g. (just the idea, not tested with your package):

build() {
  python -m build --wheel --no-isolation
  # maybe build documentation, ...

package() {
  python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
  # Maybe install documentation, license, ...