2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-11-27 09:42:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, freezegun
|
|
|
|
, graphql-core
|
|
|
|
, opentracing
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
2023-01-11 07:51:40 +00:00
|
|
|
, pythonOlder
|
2022-11-27 09:42:12 +00:00
|
|
|
, snapshottest
|
|
|
|
, starlette
|
|
|
|
, typing-extensions
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ariadne";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.17.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirumee";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-LRsijp2N0L4QCvPt0vWBX0qE4yqDDKtMcTBQ/eAkljA=";
|
2022-11-27 09:42:12 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
graphql-core
|
|
|
|
starlette
|
|
|
|
typing-extensions
|
|
|
|
];
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
opentracing
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
snapshottest
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ariadne"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# TypeError: TestClient.request() got an unexpected keyword argument 'content'
|
|
|
|
"test_attempt_parse_request_missing_content_type_raises_bad_request_error"
|
|
|
|
"test_attempt_parse_non_json_request_raises_bad_request_error"
|
|
|
|
"test_attempt_parse_non_json_request_body_raises_bad_request_error"
|
|
|
|
];
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for implementing GraphQL servers using schema-first approach";
|
|
|
|
homepage = "https://ariadnegraphql.org";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/mirumee/ariadne/blob/${version}/CHANGELOG.md";
|
2022-11-27 09:42:12 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
|
|
|
};
|
|
|
|
}
|