Source: python-jsonschema Version: 3.2.0-5 Severity: wishlist X-Debbugs-Cc: deb...@microjoe.org
Dear Maintainer, I am currently packaging dtschema (see ITP #1005301 [0]). This package seems to use a validator introduced in 2019 but not available in the current 3.2 release. Here is the test failing during package build: > ====================================================================== > ERROR: dtschema (unittest.loader._FailedTest) > ---------------------------------------------------------------------- > ImportError: Failed to import test module: dtschema > Traceback (most recent call last): > File "/usr/lib/python3.9/unittest/loader.py", line 470, in _find_test_path > package = self._get_module_from_name(name) > File "/usr/lib/python3.9/unittest/loader.py", line 377, in > _get_module_from_name > __import__(name) > File > "/home/microjoe/dev/debian/result/dt-schema/.pybuild/cpython3_3.9_dt-schema/build/dtschema/__init__.py", > line 1, in <module> > from dtschema.lib import ( > File > "/home/microjoe/dev/debian/result/dt-schema/.pybuild/cpython3_3.9_dt-schema/build/dtschema/lib.py", > line 766, in <module> > DTVal = jsonschema.validators.extend(jsonschema.Draft201909Validator, > {'typeSize': typeSize, 'phandle': phandle}) > AttributeError: module 'jsonschema' has no attribute 'Draft201909Validator' > > > ---------------------------------------------------------------------- > Ran 1 test in 0.000s > > FAILED (errors=1) It seems to be that providing the latest 4.4.0 release should solve this issue, and allow me to finish the packaging of the dtschema package. The `Draft201909Validator` was introduced a commit 6 months ago in upstream [1]. Bests regards, Agathe. [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005301 [1] https://github.com/Julian/jsonschema/commit/d104bdbe2ce3f283e4e2bbf2a5fe7f6f7d6f7280 -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.16.0-1-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled