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
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user