2021-01-04 09:42:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aniso8601
|
|
|
|
, graphql-core
|
|
|
|
, graphql-relay
|
2021-02-11 02:56:40 +00:00
|
|
|
, promise
|
2021-01-04 09:42:44 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-mock
|
|
|
|
, pytz
|
|
|
|
, snapshottest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphene";
|
2021-10-04 21:45:11 +00:00
|
|
|
version = "3.0.0b8";
|
2021-01-04 09:42:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = "graphene";
|
|
|
|
rev = "v${version}";
|
2021-10-04 21:45:11 +00:00
|
|
|
sha256 = "sha256-Pgln369s4qXdKqLxhX+AkgpDQm+MfSZ/OVmB1AaawHI=";
|
2021-01-04 09:42:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
graphql-core
|
|
|
|
graphql-relay
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-11 02:56:40 +00:00
|
|
|
promise
|
2021-01-04 09:42:44 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
snapshottest
|
|
|
|
];
|
|
|
|
|
2021-02-11 02:56:40 +00:00
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
|
2021-07-03 16:28:40 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Expects different Exeception classes, but receives none of them
|
|
|
|
# https://github.com/graphql-python/graphene/issues/1346
|
|
|
|
"test_unexpected_error"
|
|
|
|
];
|
|
|
|
|
2021-01-04 09:42:44 +00:00
|
|
|
pythonImportsCheck = [ "graphene" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GraphQL Framework for Python";
|
|
|
|
homepage = "https://github.com/graphql-python/graphene";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|