From a91aea24eff5e3a4658568da0eae609edceaedd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 8 Mar 2026 19:32:39 -0700 Subject: [PATCH] python3Packages.datamodel-code-generator: update dependencies --- .../datamodel-code-generator/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/datamodel-code-generator/default.nix b/pkgs/development/python-modules/datamodel-code-generator/default.nix index 6c78f81659c8..1db26a8fd023 100644 --- a/pkgs/development/python-modules/datamodel-code-generator/default.nix +++ b/pkgs/development/python-modules/datamodel-code-generator/default.nix @@ -4,13 +4,13 @@ black, buildPythonPackage, fetchFromGitHub, - freezegun, genson, graphql-core, hatch-vcs, hatchling, httpx, inflect, + inline-snapshot, isort, jinja2, openapi-spec-validator, @@ -18,11 +18,12 @@ prance, ruff, pydantic, - pytest-benchmark, + pysnooper, pytest-mock, pytestCheckHook, pyyaml, - toml, + time-machine, + watchfiles, }: buildPythonPackage rec { @@ -57,10 +58,11 @@ buildPythonPackage rec { packaging pydantic pyyaml - toml ]; optional-dependencies = { + all = lib.concatAttrValues (lib.removeAttrs optional-dependencies [ "all" ]); + debug = [ pysnooper ]; graphql = [ graphql-core ]; http = [ httpx ]; ruff = [ ruff ]; @@ -68,15 +70,18 @@ buildPythonPackage rec { openapi-spec-validator prance ]; + watch = [ + watchfiles + ]; }; nativeCheckInputs = [ - freezegun - pytest-benchmark + inline-snapshot pytest-mock pytestCheckHook + time-machine ] - ++ lib.concatAttrValues optional-dependencies; + ++ optional-dependencies.all; pythonImportsCheck = [ "datamodel_code_generator" ];