Merge pull request #158585 from fabaff/fix-graphene

This commit is contained in:
Sandro 2022-02-08 12:46:27 +01:00 committed by GitHub
commit 9933a1c8c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,16 @@
{ lib
, aniso8601
, buildPythonPackage
, fetchFromGitHub
, aniso8601
, graphql-core
, graphql-relay
, promise
, pytestCheckHook
, pytest-asyncio
, pytest-benchmark
, pytest-mock
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, pytz
, snapshottest
}:
@ -16,6 +18,9 @@
buildPythonPackage rec {
pname = "graphene";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "graphql-python";
@ -40,15 +45,22 @@ buildPythonPackage rec {
snapshottest
];
pytestFlagsArray = [ "--benchmark-disable" ];
pytestFlagsArray = [
"--benchmark-disable"
];
disabledTests = [
# Expects different Exeception classes, but receives none of them
# https://github.com/graphql-python/graphene/issues/1346
"test_unexpected_error"
] ++ lib.optionals (pythonAtLeast "3.10") [
"test_objecttype_as_container_extra_args"
"test_objecttype_as_container_invalid_kwargs"
];
pythonImportsCheck = [ "graphene" ];
pythonImportsCheck = [
"graphene"
];
meta = with lib; {
description = "GraphQL Framework for Python";