python3Packages.xsdata: 25.7 -> 26.1 (#481988)

This commit is contained in:
dotlambda
2026-01-26 16:22:35 +00:00
committed by GitHub
2 changed files with 16 additions and 21 deletions
@@ -5,8 +5,6 @@
replaceVars,
ruff,
click,
click-default-group,
docformatter,
jinja2,
toposort,
typing-extensions,
@@ -18,14 +16,14 @@
buildPythonPackage rec {
pname = "xsdata";
version = "25.7";
version = "26.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tefra";
repo = "xsdata";
tag = "v${version}";
hash = "sha256-npwJlyUYjoYzvwaZZK4PIqhJmTeYGDDfc4T4/ODcx4c=";
hash = "sha256-cMXLRk74y+yHYyIQqlUcMZawNfMXa5L17qhVkTpgEsk=";
};
patches = [
@@ -46,8 +44,6 @@ buildPythonPackage rec {
optional-dependencies = {
cli = [
click
click-default-group
docformatter
jinja2
toposort
];
@@ -58,9 +54,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
]
++ optional-dependencies.cli
++ optional-dependencies.lxml
++ optional-dependencies.soap;
++ lib.concatAttrValues optional-dependencies;
disabledTestPaths = [ "tests/integration/benchmarks" ];
@@ -1,21 +1,22 @@
diff --git a/xsdata/formats/dataclass/generator.py b/xsdata/formats/dataclass/generator.py
index f30196b1..b7934b3d 100644
index b9f1b0e9..c1ed4c72 100644
--- a/xsdata/formats/dataclass/generator.py
+++ b/xsdata/formats/dataclass/generator.py
@@ -240,14 +240,14 @@ class DataclassGenerator(AbstractGenerator):
"""
@@ -240,7 +240,7 @@ class DataclassGenerator(AbstractGenerator):
ruff_config = Path(__file__).parent.joinpath("ruff.toml")
commands = [
[
- "ruff",
+ "@ruff@",
"format",
"--config",
f"line-length={self.config.output.max_line_length}",
*file_paths,
],
[
- "ruff",
+ "@ruff@",
"check",
"--config",
f"line-length={self.config.output.max_line_length}",
str(ruff_config),
@@ -252,7 +252,7 @@ class DataclassGenerator(AbstractGenerator):
*file_paths,
],
[
- "ruff",
+ "@ruff@",
"format",
"--config",
str(ruff_config),