From bd8eb5490aa24b8e9b01cd5282b02c4d970f55d8 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 17 May 2026 12:13:37 +0000 Subject: [PATCH] python3Packages.dependency-injector: 4.48.3 -> 4.49.0 Diff: https://github.com/ets-labs/python-dependency-injector/compare/4.48.3...4.49.0 Changelog: https://github.com/ets-labs/python-dependency-injector/blob/4.49.0/docs/main/changelog.rst --- .../dependency-injector/default.nix | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/dependency-injector/default.nix b/pkgs/development/python-modules/dependency-injector/default.nix index 25279d246c36..1f546cd80f48 100644 --- a/pkgs/development/python-modules/dependency-injector/default.nix +++ b/pkgs/development/python-modules/dependency-injector/default.nix @@ -1,34 +1,45 @@ { lib, - aiohttp, buildPythonPackage, - fastapi, fetchFromGitHub, + + # build-system + cython, + setuptools, + + # optional-dependencies + aiohttp, + pydantic, flask, + pyyaml, + + # tests + fastapi, httpx, mypy-boto3-s3, numpy, - pydantic, pytest-asyncio, pytestCheckHook, - pyyaml, scipy, - setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "dependency-injector"; - version = "4.48.3"; + version = "4.49.0"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "ets-labs"; repo = "python-dependency-injector"; - tag = version; - hash = "sha256-J4M4SM256vZa2JUhagcbKu+DAUk1Op9HN+WpLL6ScBc="; + tag = finalAttrs.version; + hash = "sha256-oL+Vgz2EOD/w385MJy+hLfkSctLEKRrzbx5RP9N8AmY="; }; - build-system = [ setuptools ]; + build-system = [ + cython + setuptools + ]; optional-dependencies = { aiohttp = [ aiohttp ]; @@ -46,7 +57,7 @@ buildPythonPackage rec { pytestCheckHook scipy ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; pythonImportsCheck = [ "dependency_injector" ]; @@ -56,15 +67,16 @@ buildPythonPackage rec { "tests/unit/wiring/test_*_py36.py" "tests/unit/providers/configuration/test_from_pydantic_py36.py" "tests/unit/providers/configuration/test_pydantic_settings_in_init_py36.py" + + # Requires unpackaged fast-depends + "tests/unit/wiring/test_fastdepends.py" ]; meta = { description = "Dependency injection microframework for Python"; homepage = "https://github.com/ets-labs/python-dependency-injector"; - changelog = "https://github.com/ets-labs/python-dependency-injector/blob/${src.tag}/docs/main/changelog.rst"; + changelog = "https://github.com/ets-labs/python-dependency-injector/blob/${finalAttrs.src.tag}/docs/main/changelog.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ gerschtli ]; - # https://github.com/ets-labs/python-dependency-injector/issues/726 - broken = lib.versionAtLeast pydantic.version "2"; }; -} +})