Merge pull request #129025 from fabaff/bump-dependency-injector

This commit is contained in:
Sandro 2021-07-07 22:53:18 +02:00 committed by GitHub
commit 3a52368bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 7 deletions

View file

@ -16,13 +16,13 @@
buildPythonPackage rec {
pname = "dependency-injector";
version = "4.32.2";
version = "4.34.0";
src = fetchFromGitHub {
owner = "ets-labs";
repo = "python-dependency-injector";
rev = version;
sha256 = "1gkkka0hl2hl4axf3gfm58mzv92bg0frr5jikw8g32hd4q4aagcg";
sha256 = "sha256-MI0+saRe4Zi77otVPGYxrX9z8Jc5K1A1sCxHBS0uta0=";
};
propagatedBuildInputs = [
@ -42,6 +42,11 @@ buildPythonPackage rec {
pyyaml
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "six>=1.7.0,<=1.15.0" "six"
'';
disabledTestPaths = [
# There is no unique identifier to disable the one failing test
"tests/unit/ext/test_aiohttp_py35.py"

View file

@ -25,9 +25,8 @@ buildPythonPackage rec {
sha256 = "sha256-bVCCLPnV5F8PqLMg3GwcpwpGldrxsU+WryL6gj6y338=";
};
# Allow later aniso8601 releases
# https://github.com/graphql-python/graphene/pull/1331
patches = [ (fetchpatch {
# Allow later aniso8601 releases, https://github.com/graphql-python/graphene/pull/1331
url = "https://github.com/graphql-python/graphene/commit/26b16f75b125e35eeb2274b7be503ec29f2e8a45.patch";
sha256 = "qm96pNOoxPieEy1CFZpa2Mx010pY3QU/vRyuL0qO3Tk=";
}) ];
@ -50,6 +49,11 @@ buildPythonPackage rec {
pytestFlagsArray = [ "--benchmark-disable" ];
disabledTests = [
# TypeError: Failed: DID NOT RAISE <class...
"test_unexpected_error"
];
pythonImportsCheck = [ "graphene" ];
meta = with lib; {

View file

@ -53,9 +53,13 @@ buildPythonPackage rec {
typing-extensions
];
# fails to import graphql, but integrated graphql support is about to
# be removed in 0.15, see https://github.com/encode/starlette/pull/1135.
disabledTestPaths = [ "tests/test_graphql.py" ];
disabledTestPaths = [
# fails to import graphql, but integrated graphql support is about to
# be removed in 0.15, see https://github.com/encode/starlette/pull/1135.
"tests/test_graphql.py"
# contextfunction was removed in Jinja 3.1
"tests/test_templates.py"
];
pythonImportsCheck = [ "starlette" ];