From e640433702d630f7eef1887769c2d6d790112a24 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 26 Oct 2024 09:04:51 +0200 Subject: [PATCH] python312Packages.dependency-injector: 4.41.0 -> 4.42.0 Diff: https://github.com/ets-labs/python-dependency-injector/compare/refs/tags/4.41.0...4.42.0 Changelog: https://github.com/ets-labs/python-dependency-injector/blob/4.42.0/docs/main/changelog.rst --- .../dependency-injector/default.nix | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/dependency-injector/default.nix b/pkgs/development/python-modules/dependency-injector/default.nix index 5980eaff54db..57280fd95468 100644 --- a/pkgs/development/python-modules/dependency-injector/default.nix +++ b/pkgs/development/python-modules/dependency-injector/default.nix @@ -14,24 +14,24 @@ pythonOlder, pyyaml, scipy, - six, + setuptools, }: buildPythonPackage rec { pname = "dependency-injector"; - version = "4.41.0"; - format = "setuptools"; + version = "4.42.0"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "ets-labs"; repo = "python-dependency-injector"; - rev = version; - hash = "sha256-U3U/L8UuYrfpm4KwVNmViTbam7QdZd2vp1p+ENtOJlw="; + rev = "refs/tags/${version}"; + hash = "sha256-ryPNmiIKQzR4WSjt7hi4C+iTsYvfj5TYGy+9PJxX+10="; }; - propagatedBuildInputs = [ six ]; + build-system = [ setuptools ]; optional-dependencies = { aiohttp = [ aiohttp ]; @@ -40,20 +40,15 @@ buildPythonPackage rec { yaml = [ pyyaml ]; }; - nativeCheckInputs = - [ - fastapi - httpx - mypy-boto3-s3 - numpy - pytest-asyncio - pytestCheckHook - scipy - ] - ++ optional-dependencies.aiohttp - ++ optional-dependencies.pydantic - ++ optional-dependencies.yaml - ++ optional-dependencies.flask; + nativeCheckInputs = [ + fastapi + httpx + mypy-boto3-s3 + numpy + pytest-asyncio + pytestCheckHook + scipy + ] ++ lib.flatten (builtins.attrValues optional-dependencies); pythonImportsCheck = [ "dependency_injector" ]; @@ -61,6 +56,8 @@ buildPythonPackage rec { # Exclude tests for EOL Python releases "tests/unit/ext/test_aiohttp_py35.py" "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" ]; meta = with lib; {