python3Packages.graphene: fix graphql-core==3.2.0 compat
This commit is contained in:
parent
f8ac590609
commit
7b6f2b6c8a
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, aniso8601
|
, aniso8601
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, fetchpatch
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, graphql-core
|
, graphql-core
|
||||||
, graphql-relay
|
, graphql-relay
|
||||||
|
@ -29,6 +30,20 @@ buildPythonPackage rec {
|
||||||
sha256 = "0qgp3nl6afyz6y27bw175hyqppx75pp1vqwl7nvlpwvgwyyc2mnl";
|
sha256 = "0qgp3nl6afyz6y27bw175hyqppx75pp1vqwl7nvlpwvgwyyc2mnl";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix graphql-core 3.2.0 support
|
||||||
|
(fetchpatch {
|
||||||
|
# https://github.com/graphql-python/graphene/pull/1378
|
||||||
|
url = "https://github.com/graphql-python/graphene/commit/989970f89341ebb949962d13dcabca8a6ccddad4.patch";
|
||||||
|
hash = "sha256-qRxWTqv5XQN7uFjL2uv9NjTvSLi76/MyFSa4jpkb8to=";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
# https://github.com/graphql-python/graphene/pull/1417
|
||||||
|
url = "https://github.com/graphql-python/graphene/commit/4e0e18d1682b7759bdf16499c573f675c7fb51cb.patch";
|
||||||
|
hash = "sha256-icdTGDabJouQ3hVpcMkkeabNwdoDxdVVAboTOWFbO94=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aniso8601
|
aniso8601
|
||||||
graphql-core
|
graphql-core
|
||||||
|
@ -53,6 +68,8 @@ buildPythonPackage rec {
|
||||||
# Expects different Exeception classes, but receives none of them
|
# Expects different Exeception classes, but receives none of them
|
||||||
# https://github.com/graphql-python/graphene/issues/1346
|
# https://github.com/graphql-python/graphene/issues/1346
|
||||||
"test_unexpected_error"
|
"test_unexpected_error"
|
||||||
|
# https://github.com/graphql-python/graphene/pull/1417#issuecomment-1102492138
|
||||||
|
"test_example_end_to_end"
|
||||||
] ++ lib.optionals (pythonAtLeast "3.10") [
|
] ++ lib.optionals (pythonAtLeast "3.10") [
|
||||||
"test_objecttype_as_container_extra_args"
|
"test_objecttype_as_container_extra_args"
|
||||||
"test_objecttype_as_container_invalid_kwargs"
|
"test_objecttype_as_container_invalid_kwargs"
|
||||||
|
|
Loading…
Reference in a new issue