Package Details: python-asn1tools 0.156.0-3

Git Clone URL: https://aur.archlinux.org/python-asn1tools.git (read-only, click to copy)
Package Base: python-asn1tools
Description: A Python package for ASN.1 parsing, encoding and decoding
Upstream URL: https://github.com/eerimoq/asn1tools.git
Licenses: MIT
Submitter: hurufu
Maintainer: hurufu
Last Packager: hurufu
Votes: 0
Popularity: 0.000000
First Submitted: 2021-02-12 18:15 (UTC)
Last Updated: 2024-04-25 16:00 (UTC)

Latest Comments

hurufu commented on 2024-04-25 16:04 (UTC)

I think I've fixed all issues. Thanks a lot @dreieck and @weltio for letting me know. Sadly 7 unit tests are failing and this has to be fixed in the upstream repo. For now you have to use --nocheck.

hurufu commented on 2024-04-24 19:45 (UTC)

I somehow forgot about this package, working on fix.

weltio commented on 2024-03-22 10:59 (UTC)

bitstruct is still a problem

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/__main__.py", line 4, in <module>
    from aardwolf.commons.factory import RDPConnectionFactory
  File "/usr/lib/python3.11/site-packages/aardwolf/commons/factory.py", line 8, in <module>
    from aardwolf.connection import RDPConnection
  File "/usr/lib/python3.11/site-packages/aardwolf/connection.py", line 10, in <module>
    import asn1tools
  File "/usr/lib/python3.11/site-packages/asn1tools/__init__.py", line 18, in <module>
    from .compiler import compile_dict
  File "/usr/lib/python3.11/site-packages/asn1tools/compiler.py", line 10, in <module>
    from .codecs import compiler
  File "/usr/lib/python3.11/site-packages/asn1tools/codecs/compiler.py", 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 setup.py directly:

/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

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

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

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

[...]
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
  'python-setuptools'
  [...]
)
[...]
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, ...
  [...]
}

Regards!