Debian Codegraph @

debian/patches/relax-chardet.patch

raw
1 Description: Relax the chardet lower bound
2 asammdf 8.8.27 imports chardet unconditionally and pins chardet >= 7.0.0.
3 Debian ships python3-chardet 5.2.0, whose detect() API is identical for
4 the single-argument use asammdf makes of it. Lower the bound so the
5 generated dependency is satisfiable.
6 Author: Dale Richards <[email protected]>
7 Forwarded: no
8 Last-Update: 2026-09-07
9 --- a/pyproject.toml
10 +++ b/pyproject.toml
11 @@ -35,7 +35,7 @@ keywords = [
12 "measurement",
13 ]
14 dependencies = [
15 - "chardet>=7.0.0",
16 + "chardet>=5.2",
17 "canmatrix[arxml,dbc]>=1.2",
18 "isal; platform_machine == 'x86_64' or platform_machine == 'AMD64'",
19 "deflate; platform_machine == 'x86_64' or platform_machine == 'AMD64'",
20 @@ -50,7 +50,7 @@ dependencies = [
21 ]
22
23 [project.optional-dependencies]
24 -decode = ["chardet>=7.0.0"]
25 +decode = ["chardet>=5.2"]
26 export = [
27 "pyarrow>=17.0.0",
28 "h5py>=3.11",